Browse Source

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

pull/2/head
Alibek Omarov 2 years ago
parent
commit
12da44a3d7
  1. 2
      engine/server/sv_client.c

2
engine/server/sv_client.c

@ -843,6 +843,8 @@ void SV_Info( netadr_t from ) @@ -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 );

Loading…
Cancel
Save