r5490 - trunk/data/qcsrc/client

esteel at icculus.org esteel at icculus.org
Sun Jan 11 12:23:59 EST 2009


Author: esteel
Date: 2009-01-11 12:23:58 -0500 (Sun, 11 Jan 2009)
New Revision: 5490

Modified:
   trunk/data/qcsrc/client/sbar.qc
Log:
split an larger if test into several, fixed the team size hint for me

Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc	2009-01-10 20:29:41 UTC (rev 5489)
+++ trunk/data/qcsrc/client/sbar.qc	2009-01-11 17:23:58 UTC (rev 5490)
@@ -1582,7 +1582,9 @@
 			if (teamsize)
 			{
 				tm = GetTeam(GetPlayerColor(player_localentnum), false);
-				if (tm && tm.team != COLOR_SPECTATOR && (tm.team_size - teamsize) > 1)
+				if (tm)
+				if (tm.team != COLOR_SPECTATOR)
+				if ((tm.team_size - teamsize) > 1)
 				{
 					s = strcat(blinkcolor, "Teamnumbers are unbalanced! Press ^3", getcommandkey("team menu", "menu_showteamselect"), blinkcolor, " to adjust");
 					o = Sbar_DrawNoteLine(o, s);




More information about the nexuiz-commits mailing list