From: Rudolf Polzer Date: Wed, 15 Sep 2010 11:07:51 +0000 (+0200) Subject: serverlist: fix ping column X-Git-Tag: xonotic-v0.1.0preview~313 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=bf2c46d4c667d171938734fc448b7514ee790a8d;p=xonotic%2Fxonotic-data.pk3dir.git serverlist: fix ping column --- diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 9de685ef4..95e1f80b8 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -552,7 +552,7 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float { // layout: Ping, Server name, Map name, NP, TP, MP string s; - float p; + float p, q; vector theColor; float theAlpha; @@ -592,8 +592,8 @@ void XonoticServerList_drawListBoxItem(entity me, float i, vector absSize, float } s = gethostcachestring(SLIST_FIELD_CNAME, i); - p = stof(substring(crypto_getencryptlevel(s), 0, 1)); - if((p <= 0 && cvar("crypto_aeslevel") >= 3) || (p >= 3 && cvar("crypto_aeslevel") <= 0)) + q = stof(substring(crypto_getencryptlevel(s), 0, 1)); + if((q <= 0 && cvar("crypto_aeslevel") >= 3) || (q >= 3 && cvar("crypto_aeslevel") <= 0)) { theColor = SKINCOLOR_SERVERLIST_IMPOSSIBLE; theAlpha = SKINALPHA_SERVERLIST_IMPOSSIBLE;