mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-10 06:02:10 +08:00
engine: server: add sv_log_outofband cvar that controls whether connectionless packets should be printed or not
This commit is contained in:
@@ -3146,7 +3146,9 @@ void SV_ConnectionlessPacket( netadr_t from, sizebuf_t *msg )
|
||||
Cmd_TokenizeString( args );
|
||||
|
||||
pcmd = Cmd_Argv( 0 );
|
||||
Con_Reportf( "SV_ConnectionlessPacket: %s : %s\n", NET_AdrToString( from ), pcmd );
|
||||
|
||||
if( sv_log_outofband.value )
|
||||
Con_Reportf( "SV_ConnectionlessPacket: %s : %s\n", NET_AdrToString( from ), pcmd );
|
||||
|
||||
if( !Q_strcmp( pcmd, "ping" )) SV_Ping( from );
|
||||
else if( !Q_strcmp( pcmd, "ack" )) SV_Ack( from );
|
||||
|
||||
Reference in New Issue
Block a user