mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-18 19:10:37 +00:00
engine: server: added "c" command to SV_ConnectionlessPacket
This commit is contained in:
parent
36b0d47f5f
commit
fce3959d15
@ -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, "s" )) SV_AddToMaster( from, msg );
|
||||||
else if( !Q_strcmp( pcmd, "T" "Source" )) SV_TSourceEngineQuery( from );
|
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, "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 ))
|
else if( svgame.dllFuncs.pfnConnectionlessPacket( &from, args, buf, &len ))
|
||||||
{
|
{
|
||||||
// user out of band message (must be handled in CL_ConnectionlessPacket)
|
// user out of band message (must be handled in CL_ConnectionlessPacket)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user