From: Rudolf Polzer Date: Sat, 27 Aug 2011 09:35:53 +0000 (+0200) Subject: reject server entries with negative ping X-Git-Tag: xonotic-v0.5.0~56^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=78a6ac7a5d72aee9d776c95a1ce411af4919f1f9;p=xonotic%2Fxonotic-data.pk3dir.git reject server entries with negative ping (workaround for an engine bug) --- diff --git a/qcsrc/menu/xonotic/serverlist.c b/qcsrc/menu/xonotic/serverlist.c index 0e4760e3f..6e9bf1790 100644 --- a/qcsrc/menu/xonotic/serverlist.c +++ b/qcsrc/menu/xonotic/serverlist.c @@ -257,6 +257,10 @@ void XonoticServerList_refreshServerList(entity me, float mode) m = SLIST_MASK_AND - 1; resethostcachemasks(); + + // ping: reject negative ping (no idea why this happens in the first place, engine bug) + sethostcachemasknumber(++m, SLIST_FIELD_PING, 0, SLIST_TEST_GREATEREQUAL); + if(!me.filterShowFull) { sethostcachemasknumber(++m, SLIST_FIELD_FREESLOTS, 1, SLIST_TEST_GREATEREQUAL); // legacy