[nexuiz-commits] r7490 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Aug 21 13:45:06 EDT 2009
Author: div0
Date: 2009-08-21 13:45:06 -0400 (Fri, 21 Aug 2009)
New Revision: 7490
Modified:
trunk/data/qcsrc/client/sbar.qc
Log:
really fix warning and error
Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc 2009-08-21 17:44:32 UTC (rev 7489)
+++ trunk/data/qcsrc/client/sbar.qc 2009-08-21 17:45:06 UTC (rev 7490)
@@ -772,18 +772,18 @@
if(field == SP_NAME) // name gets all remaining space
{
- float sz, j;
- sz = sbwidth / sbar_fontsize_x;
+ float namesize, j;
+ namesize = sbwidth / sbar_fontsize_x;
for(j = 0; j < sbar_num_fields; ++j)
if(j != i)
if (sbar_field[i] != SP_SEPARATOR)
- sz -= sbar_size[j] + 1;
- sz += 1;
- sbar_size[i] = sz;
+ namesize -= sbar_size[j] + 1;
+ namesize += 1;
+ sbar_size[i] = namesize;
if (sbar_fixscoreboardcolumnwidth_iconlen != 0)
- sz -= sbar_fixscoreboardcolumnwidth_marginlen + sbar_fixscoreboardcolumnwidth_iconlen;
- str = textShortenToWidth(str, sz, stringwidth_colors);
+ namesize -= sbar_fixscoreboardcolumnwidth_marginlen + sbar_fixscoreboardcolumnwidth_iconlen;
+ str = textShortenToWidth(str, namesize, stringwidth_colors);
sbar_fixscoreboardcolumnwidth_len = stringwidth(str, TRUE);
}
else
More information about the nexuiz-commits
mailing list