[nexuiz-commits] r7336 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Tue Aug 4 15:14:57 EDT 2009
Author: div0
Date: 2009-08-04 15:14:57 -0400 (Tue, 04 Aug 2009)
New Revision: 7336
Modified:
trunk/data/qcsrc/client/Main.qc
Log:
slightly cleanup of last fix
Modified: trunk/data/qcsrc/client/Main.qc
===================================================================
--- trunk/data/qcsrc/client/Main.qc 2009-08-04 19:13:48 UTC (rev 7335)
+++ trunk/data/qcsrc/client/Main.qc 2009-08-04 19:14:57 UTC (rev 7336)
@@ -183,11 +183,13 @@
case COLOR_TEAM2:
case COLOR_TEAM3:
case COLOR_TEAM4:
- case COLOR_SPECTATOR:
break;
default:
- print("trying to switch to unsupported team ", ftos(Team), "\n");
- Team = COLOR_SPECTATOR;
+ if(GetTeam(Team, false) == NULL)
+ {
+ print("trying to switch to unsupported team ", ftos(Team), "\n");
+ Team = COLOR_SPECTATOR;
+ }
break;
}
if(Team == -1) // leave
More information about the nexuiz-commits
mailing list