Browse Source

engine: system: parent messagebox to main window when dealing with Sys_Error

master
Alibek Omarov 9 months ago
parent
commit
1a0867523d
  1. 4
      engine/common/system.c

4
engine/common/system.c

@ -404,7 +404,7 @@ void Sys_Warn( const char *format, ... ) @@ -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, ... ) @@ -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
{

Loading…
Cancel
Save