mirror of
https://github.com/w23/xash3d-fwgs
synced 2024-12-14 21:20:26 +01:00
engine: client: better fix for notify debug messages, rely on host.allow_console variable to don't allow uninitialized console usage
This commit is contained in:
parent
f29a9f5f58
commit
4b05cf4399
@ -2051,7 +2051,7 @@ void Con_DrawDebug( void )
|
||||
timeStart = Sys_DoubleTime();
|
||||
}
|
||||
|
||||
if( Cvar_VariableInteger( "cl_background" ) || Cvar_VariableInteger( "sv_background" ))
|
||||
if( !host.allow_console || Cvar_VariableInteger( "cl_background" ) || Cvar_VariableInteger( "sv_background" ))
|
||||
return;
|
||||
|
||||
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
|
||||
|
||||
if( !Cvar_VariableInteger( "cl_background" ) && !Cvar_VariableInteger( "sv_background" ))
|
||||
if( host.allow_console && ( !Cvar_VariableInteger( "cl_background" ) && !Cvar_VariableInteger( "sv_background" )))
|
||||
{
|
||||
for( i = CON_LINES_COUNT - con.num_times; i < CON_LINES_COUNT; i++ )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user