From: bones_was_here Date: Tue, 3 Oct 2023 09:49:24 +0000 (+1000) Subject: Sys_Error(): don't leave a dead window covering the OS UI or crash dialog X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fbdc89dc46526ae72e8497433560bdaa8f42367c;p=xonotic%2Fdarkplaces.git Sys_Error(): don't leave a dead window covering the OS UI or crash dialog Signed-off-by: bones_was_here --- diff --git a/sys_sdl.c b/sys_sdl.c index 1bf22cd0..a6bff963 100644 --- a/sys_sdl.c +++ b/sys_sdl.c @@ -63,10 +63,12 @@ void Sys_Error (const char *error, ...) Con_Printf(CON_ERROR "Engine Error: %s\n", string); + // don't want a dead window left blocking the OS UI or the crash dialog + Host_Shutdown(); + if(!nocrashdialog) SDL_ShowSimpleMessageBox(SDL_MESSAGEBOX_ERROR, "Engine Error", string, NULL); - //Host_Shutdown (); exit (1); }