(svn r23119) -Fix: [Win32] Don't show a crash/assertion message box for a GUI-less video driver.

This commit is contained in:
michi_cc
2011-11-04 23:47:00 +00:00
parent 2de0383538
commit ee6e8ea36b
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -163,6 +163,11 @@ const char *VideoDriver_Dedicated::Start(const char * const *parm)
SetConsoleTitle(_T("OpenTTD Dedicated Server"));
#endif
#ifdef _MSC_VER
/* Disable the MSVC assertion message box. */
_set_error_mode(_OUT_TO_STDERR);
#endif
#ifdef __OS2__
/* For OS/2 we also need to switch to console mode instead of PM mode */
OS2_SwitchToConsoleMode();