From 267a70d6213e9a642dc5b59cb60f00b269204308 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sat, 26 Oct 2024 05:18:09 +0300 Subject: [PATCH] engine: common: don't print svc/clc_nop with net_recv/send_debug --- engine/common/net_buffer.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/engine/common/net_buffer.c b/engine/common/net_buffer.c index 94ec9cd7..0df8b071 100644 --- a/engine/common/net_buffer.c +++ b/engine/common/net_buffer.c @@ -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,7 +574,8 @@ int MSG_ReadCmd( sizebuf_t *sb, netsrc_t type ) { if( type == NS_SERVER ) { - Con_Printf( "^1cl^7 read: %s\n", CL_MsgInfo( cmd )); + if( cmd != svc_nop ) + Con_Printf( "^1cl^7 read: %s\n", CL_MsgInfo( cmd )); } else if( cmd >= 0 && cmd <= clc_lastmsg ) {