mirror of
https://github.com/YGGverse/xash3d-fwgs.git
synced 2025-01-19 11:30:34 +00:00
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:
parent
ab43486ee0
commit
fc84cd2a0a
@ -421,9 +421,12 @@ void Sys_Error( const char *error, ... )
|
|||||||
#if XASH_SDL == 2
|
#if XASH_SDL == 2
|
||||||
if( host.hWnd ) SDL_HideWindow( host.hWnd );
|
if( host.hWnd ) SDL_HideWindow( host.hWnd );
|
||||||
#endif
|
#endif
|
||||||
|
#if XASH_WIN32
|
||||||
|
Wcon_ShowConsole( false );
|
||||||
|
#endif
|
||||||
|
MSGBOX( text );
|
||||||
}
|
}
|
||||||
|
else
|
||||||
if( host_developer.value )
|
|
||||||
{
|
{
|
||||||
#if XASH_WIN32
|
#if XASH_WIN32
|
||||||
Wcon_ShowConsole( true );
|
Wcon_ShowConsole( true );
|
||||||
@ -432,14 +435,7 @@ void Sys_Error( const char *error, ... )
|
|||||||
Sys_Print( text ); // print error message
|
Sys_Print( text ); // print error message
|
||||||
Sys_WaitForQuit();
|
Sys_WaitForQuit();
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
#if XASH_WIN32
|
|
||||||
Wcon_ShowConsole( false );
|
|
||||||
#endif
|
|
||||||
MSGBOX( text );
|
|
||||||
}
|
|
||||||
|
|
||||||
Sys_Quit();
|
Sys_Quit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user