r5624 - trunk/data/qcsrc/server

DONOTREPLY at icculus.org DONOTREPLY at icculus.org
Thu Jan 22 02:40:44 EST 2009


Author: div0
Date: 2009-01-22 02:40:44 -0500 (Thu, 22 Jan 2009)
New Revision: 5624

Modified:
   trunk/data/qcsrc/server/assault.qc
Log:
fix assault resetting of spampoints


Modified: trunk/data/qcsrc/server/assault.qc
===================================================================
--- trunk/data/qcsrc/server/assault.qc	2009-01-22 06:07:04 UTC (rev 5623)
+++ trunk/data/qcsrc/server/assault.qc	2009-01-22 07:40:44 UTC (rev 5624)
@@ -274,10 +274,11 @@
 	ent = find(world, classname, "info_player_deathmatch");
 	while (ent)
 	{
-		if(ent.team == COLOR_TEAM1)
-			ent.team = COLOR_TEAM2;
-		else if(ent.team == COLOR_TEAM2)
-			ent.team = COLOR_TEAM1;
+		if(ent.team_saved == COLOR_TEAM1)
+			ent.team_saved = COLOR_TEAM2;
+		else if(ent.team_saved == COLOR_TEAM2)
+			ent.team_saved = COLOR_TEAM1;
+		ent.team = ent.team_saved;
 		ent = find(ent, classname, "info_player_deathmatch");
 	}
 




More information about the nexuiz-commits mailing list