From bf2c46d4c667d171938734fc448b7514ee790a8d Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Wed, 15 Sep 2010 13:07:51 +0200 Subject: [PATCH] serverlist: fix ping column --- qcsrc/menu/xonotic/serverlist.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; -- 2.39.2