From b4d061e94916e56862757f5e54818c48c6937226 Mon Sep 17 00:00:00 2001 From: otavepto Date: Tue, 9 Apr 2024 11:13:36 +0200 Subject: [PATCH] force add gameserver if always_lan_type was specified, not necessary but just in case --- CHANGELOG.md | 1 + dll/steam_matchmaking_servers.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 295a2323..0c9db93d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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 --- diff --git a/dll/steam_matchmaking_servers.cpp b/dll/steam_matchmaking_servers.cpp index a4fabb50..83ecf6a6 100644 --- a/dll/steam_matchmaking_servers.cpp +++ b/dll/steam_matchmaking_servers.cpp @@ -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); }