engine: host: always print Host_Error text to log, even if console hasn't been enabled

This commit is contained in:
Alibek Omarov 2024-12-27 18:37:25 +03:00
parent a5d78ecfd7
commit 2d1e76199b

View file

@ -809,11 +809,11 @@ void GAME_EXPORT Host_Error( const char *error, ... )
}
else
{
Con_Printf( "%s: %s", __func__, hosterror1 );
if( host.allow_console )
{
UI_SetActiveMenu( false );
Key_SetKeyDest( key_console );
Con_Printf( "%s: %s", __func__, hosterror1 );
}
else Platform_MessageBox( "Host Error", hosterror1, true );
}