engine: server: fix no response to goldsrc info query

This commit is contained in:
Denis Drakhnia
2026-04-24 19:45:36 +03:00
committed by a1batross
parent 06b14800e1
commit 2ba5030b62

View File

@@ -3219,9 +3219,11 @@ void SV_ConnectionlessPacket( netadr_t from, sizebuf_t *msg )
return;
}
if( !Q_strcmp( pcmd, A2S_GOLDSRC_INFO ) || pcmd[0] == A2S_GOLDSRC_PLAYERS || pcmd[0] == A2S_GOLDSRC_RULES )
// Must check `args` because A2S_GOLDSRC_INFO contains spaces.
// `pcmd` points only to the first word from the query string.
if( !Q_strcmp( args, A2S_GOLDSRC_INFO ) || pcmd[0] == A2S_GOLDSRC_PLAYERS || pcmd[0] == A2S_GOLDSRC_RULES )
{
SV_SourceQuery_HandleConnnectionlessPacket( pcmd, from );
SV_SourceQuery_HandleConnnectionlessPacket( args, from );
}
else if( !Q_strcmp( pcmd, A2A_NETINFO ))
{