engine: common: don't print svc/clc_nop with net_recv/send_debug

This commit is contained in:
Alibek Omarov 2024-10-26 05:18:09 +03:00
parent 667bedab82
commit 267a70d621

View file

@ -338,7 +338,7 @@ void MSG_WriteCmdExt( sizebuf_t *sb, int cmd, netsrc_t type, const char *name )
}
else if( type == NS_CLIENT )
{
if( cmd >= 0 && cmd <= clc_lastmsg )
if( cmd >= 0 && cmd <= clc_lastmsg && cmd != clc_nop )
{
Con_Printf( "^1cl^7 (%d) write: %s\n", sb->iCurBit, clc_strings[cmd] );
}
@ -574,6 +574,7 @@ int MSG_ReadCmd( sizebuf_t *sb, netsrc_t type )
{
if( type == NS_SERVER )
{
if( cmd != svc_nop )
Con_Printf( "^1cl^7 read: %s\n", CL_MsgInfo( cmd ));
}
else if( cmd >= 0 && cmd <= clc_lastmsg )