From 7341a6b020259e99987452b4974ba829945c39f7 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Thu, 25 Aug 2022 18:22:43 +0300 Subject: [PATCH] engine: client: add old GoldSrc feature where ConsolePrint could print to notification zone, similar to Con_NPrintf( 0, ... ) --- engine/client/cl_game.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/engine/client/cl_game.c b/engine/client/cl_game.c index 1453d859..58ed7ca1 100644 --- a/engine/client/cl_game.c +++ b/engine/client/cl_game.c @@ -1936,7 +1936,14 @@ prints directly into console (can skip notify) */ static void GAME_EXPORT pfnConsolePrint( const char *string ) { - Con_Printf( "%s", string ); + if( !COM_CheckString( string )) + return; + + // WON GoldSrc behavior + if( string[0] != '1' ) + Con_Printf( "%s", string ); + else + Con_NPrintf( 0, "%s", string + 1 ); } /*