Fix a2s_info response

This commit is contained in:
maxime1907
2021-12-01 02:33:25 +01:00
parent 6ef685506f
commit 7b7d49a08d
+4 -2
View File
@@ -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 )