From 6a2735d24ed54158b93eac217e803dcd89f67a9e Mon Sep 17 00:00:00 2001 From: michi_cc Date: Fri, 4 Nov 2011 23:47:00 +0000 Subject: (svn r23119) -Fix: [Win32] Don't show a crash/assertion message box for a GUI-less video driver. --- src/video/dedicated_v.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/video/dedicated_v.cpp') diff --git a/src/video/dedicated_v.cpp b/src/video/dedicated_v.cpp index d5f63d818..8a3be5bd6 100644 --- a/src/video/dedicated_v.cpp +++ b/src/video/dedicated_v.cpp @@ -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(); -- cgit v1.2.3-54-g00ecf