From a384994ac2ef2711589ad03390de00b57b95abe4 Mon Sep 17 00:00:00 2001 From: otavepto <153766569+otavepto@users.noreply.github.com> Date: Tue, 4 Jun 2024 14:58:49 +0300 Subject: [PATCH] fix gameid decoding bug in matchmaking servers --- dll/steam_matchmaking_servers.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dll/steam_matchmaking_servers.cpp b/dll/steam_matchmaking_servers.cpp index b2fab9d5..42453a4b 100644 --- a/dll/steam_matchmaking_servers.cpp +++ b/dll/steam_matchmaking_servers.cpp @@ -641,8 +641,10 @@ void Steam_Matchmaking_Servers::server_details(Gameserver *g, gameserveritem_t * g->set_num_players(ssq_a2s_info->players); g->set_version(static_cast(std::stoull(ssq_a2s_info->version, NULL, 0))); if (ssq_info_has_port(ssq_a2s_info)) g->set_port(ssq_a2s_info->port); - if (ssq_info_has_gameid(ssq_a2s_info)) g->set_appid(ssq_a2s_info->gameid); + + if (ssq_info_has_gameid(ssq_a2s_info)) g->set_appid(CGameID((uint64)ssq_a2s_info->gameid).AppID()); else g->set_appid(ssq_a2s_info->id); + g->set_offline(false); } else { PRINT_DEBUG(" ssq server info failed: %s", ssq_server_emsg(ssq));