(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
authorglx
Thu, 09 Aug 2007 20:59:36 +0000
changeset 7430 73c42fa0119f
parent 7429 9147a1f31a4e
child 7431 cac40a9365f3
(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
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) {