From 7b7d49a08d9aaad1ff33bf53542bf2a39da0c7d4 Mon Sep 17 00:00:00 2001 From: maxime1907 <19607336+maxime1907@users.noreply.github.com> Date: Wed, 1 Dec 2021 02:33:25 +0100 Subject: [PATCH] Fix a2s_info response --- extension.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/extension.cpp b/extension.cpp index 9fcd559..4fdf156 100644 --- a/extension.cpp +++ b/extension.cpp @@ -432,15 +432,17 @@ void SendA2S_Info(netpacket_t * packet) buf.PutShort( LittleWord( iserver->GetUDPPort() ) ); } +#if SOURCE_ENGINE <= SE_CSGO if ( g_QueryCache.info.nNewFlags & S2A_EXTRA_DATA_HAS_STEAMID ) { - buf.PutShort( LittleWord( g_QueryCache.info.iSteamID ) ); + buf.PutInt64( LittleWord( g_QueryCache.info.iSteamID ) ); } +#endif if ( g_QueryCache.info.nNewFlags & S2A_EXTRA_DATA_HAS_SPECTATOR_DATA ) { buf.PutShort( LittleWord( g_QueryCache.info.iHLTVUDPPort ) ); - buf.PutString( g_SvHostNameStore->GetBool() ? iserver->GetName() : g_QueryCache.info.aHLTVName ); + buf.PutString( g_SvHostNameStore->GetBool() ? g_QueryCache.info.aHLTVName : "Counter-Strike: Source" ); } if ( g_QueryCache.info.nNewFlags & S2A_EXTRA_DATA_HAS_GAMETAG_DATA )