Browse Source

engine: client: enable notify messages in non-developer mode

pull/2/head
Alibek Omarov 2 years ago
parent
commit
28001ea150
  1. 6
      engine/client/console.c

6
engine/client/console.c

@ -2041,7 +2041,7 @@ void Con_DrawDebug( void )
if( scr_download->value != -1.0f ) if( scr_download->value != -1.0f )
{ {
Q_snprintf( dlstring, sizeof( dlstring ), "Downloading [%d remaining]: ^2%s^7 %5.1f%% time %.f secs", Q_snprintf( dlstring, sizeof( dlstring ), "Downloading [%d remaining]: ^2%s^7 %5.1f%% time %.f secs",
host.downloadcount, host.downloadfile, scr_download->value, Sys_DoubleTime() - timeStart ); host.downloadcount, host.downloadfile, scr_download->value, Sys_DoubleTime() - timeStart );
x = refState.width - 500; x = refState.width - 500;
y = con.curFont->charHeight * 1.05f; y = con.curFont->charHeight * 1.05f;
Con_DrawString( x, y, dlstring, g_color_table[7] ); Con_DrawString( x, y, dlstring, g_color_table[7] );
@ -2051,7 +2051,7 @@ void Con_DrawDebug( void )
timeStart = Sys_DoubleTime(); timeStart = Sys_DoubleTime();
} }
if( !host_developer.value || Cvar_VariableInteger( "cl_background" ) || Cvar_VariableInteger( "sv_background" )) if( Cvar_VariableInteger( "cl_background" ) || Cvar_VariableInteger( "sv_background" ))
return; return;
if( con.draw_notify && !Con_Visible( )) if( con.draw_notify && !Con_Visible( ))
@ -2077,7 +2077,7 @@ void Con_DrawNotify( void )
x = con.curFont->charWidths[' ']; // offset one space at left screen side x = con.curFont->charWidths[' ']; // offset one space at left screen side
if( host_developer.value && ( !Cvar_VariableInteger( "cl_background" ) && !Cvar_VariableInteger( "sv_background" ))) if( !Cvar_VariableInteger( "cl_background" ) && !Cvar_VariableInteger( "sv_background" ))
{ {
for( i = CON_LINES_COUNT - con.num_times; i < CON_LINES_COUNT; i++ ) for( i = CON_LINES_COUNT - con.num_times; i < CON_LINES_COUNT; i++ )
{ {

Loading…
Cancel
Save