]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
reject server entries with negative ping
authorRudolf Polzer <divVerent@xonotic.org>
Sat, 27 Aug 2011 09:35:53 +0000 (11:35 +0200)
committerRudolf Polzer <divVerent@xonotic.org>
Sat, 27 Aug 2011 09:35:53 +0000 (11:35 +0200)
(workaround for an engine bug)

qcsrc/menu/xonotic/serverlist.c

index 0e4760e3ff3522af46781e235cc1a8cbfdcd1190..6e9bf1790751764bd48bf9007c5e519106fa08ee 100644 (file)
@@ -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