(svn r5950) -Fix: don't show Vital Windows EVER if you go to GM_MENU (tnx Darkvater)
authortruelight
Sat, 19 Aug 2006 12:01:04 +0000
changeset 4303 f631b9c6d4a8
parent 4302 f359a03a5cde
child 4304 36d90accc9f1
(svn r5950) -Fix: don't show Vital Windows EVER if you go to GM_MENU (tnx Darkvater)
genworld.c
--- a/genworld.c	Sat Aug 19 11:50:34 2006 +0000
+++ b/genworld.c	Sat Aug 19 12:01:04 2006 +0000
@@ -141,7 +141,7 @@
 
 	if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE);
 	/* Show all vital windows again, because we have hidden them */
-	if (_gw.threaded) ShowVitalWindows();
+	if (_gw.threaded && _game_mode != GM_MENU) ShowVitalWindows();
 	_gw.active   = false;
 	_gw.thread   = NULL;
 	_gw.proc     = NULL;
@@ -203,7 +203,7 @@
 
 	if (_cursor.sprite == SPR_CURSOR_ZZZ) SetMouseCursor(SPR_CURSOR_MOUSE);
 	/* Show all vital windows again, because we have hidden them */
-	if (_gw.threaded) ShowVitalWindows();
+	if (_gw.threaded && _game_mode != GM_MENU) ShowVitalWindows();
 	_gw.active   = false;
 	_gw.thread   = NULL;
 	_gw.proc     = NULL;