r5623 - trunk/data/qcsrc/server
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Thu Jan 22 01:07:05 EST 2009
Author: div0
Date: 2009-01-22 01:07:04 -0500 (Thu, 22 Jan 2009)
New Revision: 5623
Modified:
trunk/data/qcsrc/server/assault.qc
Log:
assault: leave non-team spawnpoints alone when switching rounds
Modified: trunk/data/qcsrc/server/assault.qc
===================================================================
--- trunk/data/qcsrc/server/assault.qc 2009-01-21 13:33:28 UTC (rev 5622)
+++ trunk/data/qcsrc/server/assault.qc 2009-01-22 06:07:04 UTC (rev 5623)
@@ -274,11 +274,10 @@
ent = find(world, classname, "info_player_deathmatch");
while (ent)
{
- if(ent.team == COLOR_TEAM1) {
+ if(ent.team == COLOR_TEAM1)
ent.team = COLOR_TEAM2;
- } else {
+ else if(ent.team == COLOR_TEAM2)
ent.team = COLOR_TEAM1;
- }
ent = find(ent, classname, "info_player_deathmatch");
}
@@ -288,7 +287,7 @@
{
if(ent.team == COLOR_TEAM1)
ent.team = COLOR_TEAM2;
- else
+ else if(ent.team == COLOR_TEAM2)
ent.team = COLOR_TEAM1;
ent = find(ent, classname, "func_assault_destructible");
}
More information about the nexuiz-commits
mailing list