changeset 7430:5ec86d3c460f draft

(svn r10835) -Fix [FS#998] (r10399): don't try to minimise or restore the window when closing openttd
author glx <glx@openttd.org>
date Thu, 09 Aug 2007 20:59:36 +0000
parents 32cd97def391
children fef6fd396d03
files src/video/win32_v.cpp
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/video/win32_v.cpp
+++ b/src/video/win32_v.cpp
@@ -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) {