From: Samual <samual@xonotic.org>
Date: Thu, 6 Sep 2012 07:10:02 +0000 (-0400)
Subject: You can't assist yourself ^_^
X-Git-Tag: xonotic-v0.7.0~240^2~41
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1ba011e1908d6efd0fdfb16b48669ea600d5d279;p=xonotic%2Fxonotic-data.pk3dir.git

You can't assist yourself ^_^
---

diff --git a/qcsrc/server/mutators/gamemode_ctf.qc b/qcsrc/server/mutators/gamemode_ctf.qc
index 15e62c5b7..0dfa7e109 100644
--- a/qcsrc/server/mutators/gamemode_ctf.qc
+++ b/qcsrc/server/mutators/gamemode_ctf.qc
@@ -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