Browse Source

engine: client: add old GoldSrc feature where ConsolePrint could print to notification zone, similar to Con_NPrintf( 0, ... )

pull/2/head
Alibek Omarov 2 years ago
parent
commit
7341a6b020
  1. 7
      engine/client/cl_game.c

7
engine/client/cl_game.c

@ -1936,7 +1936,14 @@ prints directly into console (can skip notify)
*/ */
static void GAME_EXPORT pfnConsolePrint( const char *string ) static void GAME_EXPORT pfnConsolePrint( const char *string )
{ {
if( !COM_CheckString( string ))
return;
// WON GoldSrc behavior
if( string[0] != '1' )
Con_Printf( "%s", string ); Con_Printf( "%s", string );
else
Con_NPrintf( 0, "%s", string + 1 );
} }
/* /*

Loading…
Cancel
Save