Menu: Filter servers by gamedir. Clients shouldn't attempt to connect to mods that way.

This commit is contained in:
Marco Cawthorne 2020-10-07 23:21:03 +02:00
parent b1742afb97
commit 7902ae22d5
1 changed files with 2 additions and 2 deletions

View File

@ -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();