engine: common: always show message box when we're in normal mode

Only dedicated server is expected to throw errors to console
This commit is contained in:
a1batross 2022-07-11 02:45:40 +03:00 committed by GitHub
parent ab43486ee0
commit fc84cd2a0a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 10 deletions

View File

@ -421,9 +421,12 @@ void Sys_Error( const char *error, ... )
#if XASH_SDL == 2
if( host.hWnd ) SDL_HideWindow( host.hWnd );
#endif
#if XASH_WIN32
Wcon_ShowConsole( false );
#endif
MSGBOX( text );
}
if( host_developer.value )
else
{
#if XASH_WIN32
Wcon_ShowConsole( true );
@ -432,14 +435,7 @@ void Sys_Error( const char *error, ... )
Sys_Print( text ); // print error message
Sys_WaitForQuit();
}
else
{
#if XASH_WIN32
Wcon_ShowConsole( false );
#endif
MSGBOX( text );
}
Sys_Quit();
}