mirror of
https://github.com/Detanup01/gbe_fork.git
synced 2025-09-10 12:03:06 +02:00
force add gameserver if always_lan_type was specified, not necessary but just in case
This commit is contained in:
parent
775b089e80
commit
b4d061e949
2 changed files with 2 additions and 1 deletions
|
@ -6,6 +6,7 @@
|
||||||
* decrease the periodicity of the background thread to `~100ms`, also prevent it from running if the callbacks are already running
|
* 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
|
* output function name in debug log
|
||||||
* imitate Windows resources of gameoverlayrenderer + add resources to networkingsocketslib
|
* imitate Windows resources of gameoverlayrenderer + add resources to networkingsocketslib
|
||||||
|
* force add gameserver if `always_lan_type` was specified, not necessary but just in case
|
||||||
|
|
||||||
---
|
---
|
||||||
|
|
||||||
|
|
|
@ -749,7 +749,7 @@ void Steam_Matchmaking_Servers::RunCallbacks()
|
||||||
r.gameservers_filtered.clear();
|
r.gameservers_filtered.clear();
|
||||||
for (auto &g : gameservers) {
|
for (auto &g : gameservers) {
|
||||||
PRINT_DEBUG("%u==%u | %i==%i", g.server.appid(), r.appid, (int)g.type, (int)r.type);
|
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");
|
PRINT_DEBUG("server found");
|
||||||
r.gameservers_filtered.push_back(g);
|
r.gameservers_filtered.push_back(g);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue