# HG changeset patch # User glx # Date 2019-01-30 21:28:07 # Node ID a0b59415a7d5dbe8558b959585411755ef299e7d # Parent 77df5a5b73e3c9bd07d2f8722e18807f5600e137 Fix: don't show OS error box for non GUI video drivers diff --git a/src/openttd.cpp b/src/openttd.cpp --- a/src/openttd.cpp +++ b/src/openttd.cpp @@ -117,7 +117,9 @@ void CDECL error(const char *s, ...) vseprintf(buf, lastof(buf), s, va); va_end(va); - ShowOSErrorBox(buf, true); + 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);