From fc84cd2a0ac06f4850de333061cd1226380e8436 Mon Sep 17 00:00:00 2001 From: a1batross Date: Mon, 11 Jul 2022 02:45:40 +0300 Subject: [PATCH] engine: common: always show message box when we're in normal mode Only dedicated server is expected to throw errors to console --- engine/common/system.c | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/engine/common/system.c b/engine/common/system.c index bfff6c66..18ba734f 100644 --- a/engine/common/system.c +++ b/engine/common/system.c @@ -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(); }