From 78a6ac7a5d72aee9d776c95a1ce411af4919f1f9 Mon Sep 17 00:00:00 2001 From: Rudolf Polzer Date: Sat, 27 Aug 2011 11:35:53 +0200 Subject: [PATCH] reject server entries with negative ping (workaround for an engine bug) --- qcsrc/menu/xonotic/serverlist.c | 4 ++++ 1 file changed, 4 insertions(+) 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 -- 2.39.2