From fce3959d150b3879049056a7dfb4674df9ebf1d6 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Sun, 10 Jul 2022 02:45:18 +0400 Subject: [PATCH] engine: server: added "c" command to SV_ConnectionlessPacket --- engine/server/sv_client.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/engine/server/sv_client.c b/engine/server/sv_client.c index e1215491..29b47c15 100644 --- a/engine/server/sv_client.c +++ b/engine/server/sv_client.c @@ -2266,6 +2266,13 @@ void SV_ConnectionlessPacket( netadr_t from, sizebuf_t *msg ) else if( !Q_strcmp( pcmd, "s" )) SV_AddToMaster( from, msg ); else if( !Q_strcmp( pcmd, "T" "Source" )) SV_TSourceEngineQuery( from ); else if( !Q_strcmp( pcmd, "i" )) NET_SendPacket( NS_SERVER, 5, "\xFF\xFF\xFF\xFFj", from ); // A2A_PING + else if (!Q_strcmp( pcmd, "c" )) + { + netadr_t to; + + if( NET_StringToAdr( Cmd_Argv( 1 ), &to )) + SV_Info( to, PROTOCOL_VERSION ); + } else if( svgame.dllFuncs.pfnConnectionlessPacket( &from, args, buf, &len )) { // user out of band message (must be handled in CL_ConnectionlessPacket)