From 5f4b8b60cba8e3368dbe6441abd9fecc5639b01f Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 13 Jun 2024 05:15:57 +0300 Subject: [PATCH] engine: client: make remote print messages more obvious --- engine/client/cl_main.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 36d341ca..5b73e476 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -1992,7 +1992,6 @@ static void CL_ConnectionlessPacket( netadr_t from, sizebuf_t *msg ) const char *c; char buf[MAX_SYSPATH]; int len = sizeof( buf ); - int dataoffset = 0; netadr_t servadr; MSG_Clear( msg ); @@ -2049,7 +2048,11 @@ static void CL_ConnectionlessPacket( netadr_t from, sizebuf_t *msg ) else if( !Q_strcmp( c, "print" )) { // print command from somewhere - Con_Printf( "%s", MSG_ReadString( msg )); + char *s = MSG_ReadString( msg ); + + Con_Printf( S_CYAN "r:" S_DEFAULT " %s", s ); + if( !COM_CheckStringEmpty( s ) || s[Q_strlen( s ) - 1] != '\n' ) + Con_Printf( "\n" ); } else if( !Q_strcmp( c, "testpacket" )) {