force add gameserver if always_lan_type was specified, not necessary but just in case

This commit is contained in:
otavepto 2024-04-09 11:13:36 +02:00
parent 775b089e80
commit b4d061e949
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@
* decrease the periodicity of the background thread to `~100ms`, also prevent it from running if the callbacks are already running
* output function name in debug log
* imitate Windows resources of gameoverlayrenderer + add resources to networkingsocketslib
* force add gameserver if `always_lan_type` was specified, not necessary but just in case
---

View File

@ -749,7 +749,7 @@ void Steam_Matchmaking_Servers::RunCallbacks()
r.gameservers_filtered.clear();
for (auto &g : gameservers) {
PRINT_DEBUG("%u==%u | %i==%i", g.server.appid(), r.appid, (int)g.type, (int)r.type);
if ((g.server.appid() == r.appid) && (g.type == r.type)) {
if ((g.server.appid() == r.appid) && (g.type == r.type || settings->matchmaking_server_list_always_lan_type)) {
PRINT_DEBUG("server found");
r.gameservers_filtered.push_back(g);
}