]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Automatically drop the flag if reverse cvar changes
authorMario <mario.mario@y7mail.com>
Thu, 15 Aug 2013 04:15:54 +0000 (14:15 +1000)
committerMario <mario.mario@y7mail.com>
Thu, 15 Aug 2013 04:15:54 +0000 (14:15 +1000)
qcsrc/server/mutators/gamemode_ctf.qc

index 384250c96cca6b3e4242cc67f23d261d1230ee45..f6c43a91d1890f030ef1ea08e41a6309a42a0917 100644 (file)
@@ -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;
                }