summaryrefslogtreecommitdiff
path: root/src/video
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2007-08-09 20:59:36 +0000
committerglx <glx@openttd.org>2007-08-09 20:59:36 +0000
commitdb65f0ea8d7780b0a8981a7625cbd59f4dd536a3 (patch)
treeda25ed02283f940d0d0cb066426e5874fbfa46bc /src/video
parentb9370f0247a8c75c497264c240403f0a3700bc07 (diff)
downloadopenttd-db65f0ea8d7780b0a8981a7625cbd59f4dd536a3.tar.xz
(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
Diffstat (limited to 'src/video')
-rw-r--r--src/video/win32_v.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/video/win32_v.cpp b/src/video/win32_v.cpp
index 02ad4a2d4..e945ba680 100644
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -621,6 +621,9 @@ static LRESULT CALLBACK WndProcGdi(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lP
#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) {