]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
You can't assist yourself ^_^
authorSamual <samual@xonotic.org>
Thu, 6 Sep 2012 07:10:02 +0000 (03:10 -0400)
committerSamual <samual@xonotic.org>
Thu, 6 Sep 2012 07:10:02 +0000 (03:10 -0400)
qcsrc/server/mutators/gamemode_ctf.qc

index 15e62c5b7e9f51a845859ecbd8d361ffa424116b..0dfa7e109de731e8fbdcfc12e527908a5e8aeb10 100644 (file)
@@ -380,7 +380,9 @@ void ctf_Handle_Capture(entity flag, entity toucher, float capturetype)
        {
                WaypointSprite_Kill(player.wps_flagcarrier);
                if(flag.speedrunning) { ctf_FakeTimeLimit(player, -1); }
-               if(enemy_flag.ctf_dropper) { PlayerTeamScore_AddScore(enemy_flag.ctf_dropper, autocvar_g_ctf_score_capture_assist); }
+               
+               if((enemy_flag.ctf_dropper) && (player != enemy_flag.ctf_dropper))
+                       { PlayerTeamScore_AddScore(enemy_flag.ctf_dropper, autocvar_g_ctf_score_capture_assist); }
        }
        
        // reset the flag