From: Mario Date: Thu, 15 Aug 2013 04:15:54 +0000 (+1000) Subject: Automatically drop the flag if reverse cvar changes X-Git-Tag: xonotic-v0.8.1~29^2~43 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=04b7e171214df00aa2d6b4a5174bee67b709b973;p=xonotic%2Fxonotic-data.pk3dir.git Automatically drop the flag if reverse cvar changes --- diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc index 384250c96..f6c43a91d 100644 --- a/qcsrc/server/mutators/gamemode_ctf.qc +++ b/qcsrc/server/mutators/gamemode_ctf.qc @@ -805,6 +805,10 @@ void ctf_FlagThink() wpforenemy_nextthink = time + WPFE_THINKRATE; // waypoint for enemy think rate (to reduce unnecessary spam of this check) } } + if(!ctf_IsDifferentTeam(self, self.owner)) + { + ctf_Handle_Throw(self.owner, world, DROP_THROW); + } return; }