# HG changeset patch # User glx # Date 1186693176 0 # Node ID 73c42fa0119f0f7e6eb08495cd038184ea38e188 # Parent 9147a1f31a4ec5c3fd4eccc4967660b5a808feae (svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd diff -r 9147a1f31a4e -r 73c42fa0119f src/video/win32_v.cpp --- a/src/video/win32_v.cpp Thu Aug 09 05:34:56 2007 +0000 +++ b/src/video/win32_v.cpp Thu Aug 09 20:59:36 2007 +0000 @@ -621,6 +621,9 @@ #if !defined(WINCE) case WM_ACTIVATE: { + /* Don't do anything if we are closing openttd */ + if (_exit_game) break; + bool active = (LOWORD(wParam) != WA_INACTIVE); bool minimized = (HIWORD(wParam) != 0); if (_wnd.fullscreen) {