r6004 - trunk/data/qcsrc/menu/nexuiz
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Feb 27 00:48:54 EST 2009
Author: div0
Date: 2009-02-27 00:48:53 -0500 (Fri, 27 Feb 2009)
New Revision: 6004
Modified:
trunk/data/qcsrc/menu/nexuiz/playerlist.c
Log:
mark spectators as -666 if using fullstatus :P
Modified: trunk/data/qcsrc/menu/nexuiz/playerlist.c
===================================================================
--- trunk/data/qcsrc/menu/nexuiz/playerlist.c 2009-02-27 05:45:09 UTC (rev 6003)
+++ trunk/data/qcsrc/menu/nexuiz/playerlist.c 2009-02-27 05:48:53 UTC (rev 6004)
@@ -116,10 +116,17 @@
s = me.getPlayerList(me, i, PLAYERPARM_NAME);
score = me.getPlayerList(me, i, PLAYERPARM_SCORE);
- if((t = strstrofs(score, ":", 0)) >= 0)
- score = substring(score, 0, t);
- if((t = strstrofs(score, ",", 0)) >= 0)
- score = substring(score, 0, t);
+ if(substring(score, strlen(score) - 10, 10) == ":spectator")
+ {
+ score = "-666";
+ }
+ else
+ {
+ if((t = strstrofs(score, ":", 0)) >= 0)
+ score = substring(score, 0, t);
+ if((t = strstrofs(score, ",", 0)) >= 0)
+ score = substring(score, 0, t);
+ }
s = draw_TextShortenToWidth(s, (me.columnNameSize / me.realFontSize_x), 1);
score = draw_TextShortenToWidth(score, me.columnScoreSize / me.realFontSize_x, 0);
More information about the nexuiz-commits
mailing list