mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-01 03:48:43 +00:00
Fix: don't show OS error box for non GUI video drivers
This commit is contained in:
parent
530bdf33cc
commit
ba38a7ca65
@ -117,7 +117,9 @@ void CDECL error(const char *s, ...)
|
||||
vseprintf(buf, lastof(buf), s, va);
|
||||
va_end(va);
|
||||
|
||||
if (VideoDriver::GetInstance() == NULL || VideoDriver::GetInstance()->HasGUI()) {
|
||||
ShowOSErrorBox(buf, true);
|
||||
}
|
||||
|
||||
/* Set the error message for the crash log and then invoke it. */
|
||||
CrashLog::SetErrorMessage(buf);
|
||||
|
Loading…
Reference in New Issue
Block a user