]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Improve that check a little bit
authorSamual Lenks <samual@xonotic.org>
Tue, 11 Sep 2012 06:34:54 +0000 (02:34 -0400)
committerSamual Lenks <samual@xonotic.org>
Tue, 11 Sep 2012 06:34:54 +0000 (02:34 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index d83988f416513f4703193d9fcc3822bfcf9a178a..d30dda8608a87cd3a4a9070550b30bc381866bb3 100644 (file)
@@ -1740,7 +1740,11 @@ MUTATOR_HOOKFUNCTION(ctf_RemovePlayer)
                { ctf_Handle_Throw(self, world, DROP_NORMAL); }
        
        for(flag = ctf_worldflaglist; flag; flag = flag.ctf_worldflagnext)
-               { if(flag.ctf_dropper == self) { flag.ctf_dropper = world; } }
+       {
+               if(flag.pass_sender == self) { flag.pass_sender = world; }
+               if(flag.pass_target == self) { flag.pass_target = world; }
+               if(flag.ctf_dropper == self) { flag.ctf_dropper = world; }
+       }
                
        return FALSE;
 }