r5472 - trunk/data/qcsrc/client
esteel at icculus.org
esteel at icculus.org
Fri Jan 9 09:47:52 EST 2009
Author: esteel
Date: 2009-01-09 09:47:51 -0500 (Fri, 09 Jan 2009)
New Revision: 5472
Modified:
trunk/data/qcsrc/client/sbar.qc
Log:
unneeded variable
Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc 2009-01-09 14:14:47 UTC (rev 5471)
+++ trunk/data/qcsrc/client/sbar.qc 2009-01-09 14:47:51 UTC (rev 5472)
@@ -1567,7 +1567,7 @@
if(teamplay)
{
entity tm;
- float init, size;
+ float size;
tm = teams.sort_next;
if (tm)
{
@@ -1575,13 +1575,11 @@
{
if(!tm.team_size || tm.team == COLOR_SPECTATOR)
continue;
- if(!init) {
+ if(!size)
size = tm.team_size;
- init = true;
- }
size = min(size, tm.team_size);
}
- if (init)
+ if (size)
{
tm = GetTeam(GetPlayerColor(player_localentnum), false);
if (tm && tm.team != COLOR_SPECTATOR && (tm.team_size - size) > 1)
More information about the nexuiz-commits
mailing list