r3998 - trunk/data/qcsrc/client
DONOTREPLY at icculus.org
DONOTREPLY at icculus.org
Fri Aug 1 14:09:33 EDT 2008
Author: div0
Date: 2008-08-01 14:09:32 -0400 (Fri, 01 Aug 2008)
New Revision: 3998
Modified:
trunk/data/qcsrc/client/sbar.qc
Log:
hide zero pings (bots, or not asked yet); use >>> sign for downloaders
Modified: trunk/data/qcsrc/client/sbar.qc
===================================================================
--- trunk/data/qcsrc/client/sbar.qc 2008-08-01 16:21:23 UTC (rev 3997)
+++ trunk/data/qcsrc/client/sbar.qc 2008-08-01 18:09:32 UTC (rev 3998)
@@ -496,8 +496,10 @@
{
case SP_PING:
if not(pl.gotscores)
+ return "\x8D\x8D\x8D"; // >>> sign
+ str = getplayerkey(pl.sv_entnum, "ping");
+ if(str == "0")
return "N/A";
- str = getplayerkey(pl.sv_entnum, "ping");
tmp = max(0, min(220, stof(str)-80)) / 220;
sbar_field_rgb = '1 1 1' - '0 1 1'*tmp;
return str;
More information about the nexuiz-commits
mailing list