From 12da44a3d75a723394f2b3e687487fd31c5c0580 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 8 Mar 2022 03:29:03 +0300 Subject: [PATCH] engine: server: send protocol version to distinguish old engine and new --- engine/server/sv_client.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/engine/server/sv_client.c b/engine/server/sv_client.c index 64ebfbe4..3f0c4bd0 100644 --- a/engine/server/sv_client.c +++ b/engine/server/sv_client.c @@ -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 );