From 1a0867523dda8e2e370f0a22ffeec06057c19a57 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 5 Mar 2024 17:12:16 +0300 Subject: [PATCH] engine: system: parent messagebox to main window when dealing with Sys_Error --- engine/common/system.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/common/system.c b/engine/common/system.c index 150842bf..e852fc34 100644 --- a/engine/common/system.c +++ b/engine/common/system.c @@ -404,7 +404,7 @@ void Sys_Warn( const char *format, ... ) Msg( "Sys_Warn: %s\n", text ); if( !Host_IsDedicated() ) // dedicated server should not hang on messagebox - Platform_MessageBox( "Xash Warning", text, false ); + Platform_MessageBox( "Xash Warning", text, true ); } /* @@ -449,7 +449,7 @@ void Sys_Error( const char *error, ... ) Wcon_ShowConsole( false ); #endif Sys_Print( text ); - Platform_MessageBox( "Xash Error", text, false ); + Platform_MessageBox( "Xash Error", text, true ); } else {