From 7902ae22d55117db5e7e5c3a3e0720fe1a9ae987 Mon Sep 17 00:00:00 2001 From: Marco Hladik Date: Wed, 7 Oct 2020 23:21:03 +0200 Subject: [PATCH] Menu: Filter servers by gamedir. Clients shouldn't attempt to connect to mods that way. --- src/menu-fn/master.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/menu-fn/master.cpp b/src/menu-fn/master.cpp index eb5ad890..73faca7f 100644 --- a/src/menu-fn/master.cpp +++ b/src/menu-fn/master.cpp @@ -58,7 +58,7 @@ Master_RefreshCache(void) { print("Refreshing host cache...\n"); resethostcachemasks(); - //sethostcachemaskstring(0, gethostcacheindexforkey("gamedir"), cvar_string("game"), SLIST_TEST_EQUAL); + sethostcachemaskstring(0, gethostcacheindexforkey("gamedir"), cvar_string("game"), SLIST_TEST_EQUAL); sethostcachesort(gethostcacheindexforkey("ping"), FALSE); refreshhostcache(FALSE); resorthostcache(); @@ -74,7 +74,7 @@ Master_UpdateCache(void) { print("Updating host cache...\n"); resethostcachemasks(); - //sethostcachemaskstring(0, gethostcacheindexforkey("gamedir"), cvar_string("game"), SLIST_TEST_EQUAL); + sethostcachemaskstring(0, gethostcacheindexforkey("gamedir"), cvar_string("game"), SLIST_TEST_EQUAL); sethostcachesort(gethostcacheindexforkey("ping"), FALSE); refreshhostcache(TRUE); resorthostcache();