Ignore the room type of local servers

This fixes an infinite loop where the local server is filtered out of
the server list when "joining" a local match with files added.
This commit is contained in:
Eidolon 2023-09-01 18:10:18 -05:00
parent aa42de92e1
commit 7c91cd56be

View file

@ -1609,8 +1609,8 @@ static boolean SL_InsertServer(serverinfo_pak* info, SINT8 node)
if (strcmp(info->application, SRB2APPLICATION)) if (strcmp(info->application, SRB2APPLICATION))
return false;/* that's a different mod */ return false;/* that's a different mod */
if (info->modifiedgame != (mpmenu.room == 1)) if (!server && info->modifiedgame != (mpmenu.room == 1))
return false;/* CORE vs MODDED! */ return false;/* CORE vs MODDED! Unless we ARE the server (i.e. local play), then it's fine to not match. */
i = serverlistcount++; i = serverlistcount++;
} }