engine: server: send protocol version to distinguish old engine and new

This commit is contained in:
Alibek Omarov 2022-03-08 03:29:03 +03:00
parent 51fcae8cec
commit 12da44a3d7
1 changed files with 2 additions and 0 deletions

View File

@ -843,6 +843,8 @@ void SV_Info( netadr_t from )
if( svs.clients[i].state >= cs_connected )
count++;
// a1ba: send protocol version to distinguish old engine and new
Info_SetValueForKey( string, "p", va( "%i", PROTOCOL_VERSION ), MAX_INFO_STRING );
Info_SetValueForKey( string, "host", hostname.string, MAX_INFO_STRING );
Info_SetValueForKey( string, "map", sv.name, MAX_INFO_STRING );
Info_SetValueForKey( string, "dm", va( "%i", (int)svgame.globals->deathmatch ), MAX_INFO_STRING );