Changeset - r23240:a0b59415a7d5
[Not reviewed]
master
0 1 0
glx - 6 years ago 2019-01-30 21:28:07
glx@openttd.org
Fix: don't show OS error box for non GUI video drivers
1 file changed with 3 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/openttd.cpp
Show inline comments
 
@@ -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);
0 comments (0 inline, 0 general)