From fbdc89dc46526ae72e8497433560bdaa8f42367c Mon Sep 17 00:00:00 2001 From: bones_was_here Date: Tue, 3 Oct 2023 19:49:24 +1000 Subject: [PATCH] Sys_Error(): don't leave a dead window covering the OS UI or crash dialog Signed-off-by: bones_was_here --- sys_sdl.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.2