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. 9
      engine/client/cl_game.c

9
engine/client/cl_game.c

@ -1936,7 +1936,14 @@ prints directly into console (can skip notify) @@ -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 );
}
/*

Loading…
Cancel
Save