summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2006-08-19 12:01:04 +0000
committertruelight <truelight@openttd.org>2006-08-19 12:01:04 +0000
commitd0c21a1ea7091b7b149b84d2bee9b7b4b2a0e846 (patch)
tree9094839ba1d77c6b68ef8c322c4fc6618f490895
parentf0db35298455a3570738fc54e62ad28e13352df2 (diff)
downloadopenttd-d0c21a1ea7091b7b149b84d2bee9b7b4b2a0e846.tar.xz
(svn r5950) -Fix: don't show Vital Windows EVER if you go to GM_MENU (tnx Darkvater)
-rw-r--r--genworld.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/genworld.c b/genworld.c
index 3ecb0132b..e95ef4ab7 100644
--- a/genworld.c
+++ b/genworld.c
@@ -141,7 +141,7 @@ static void *_GenerateWorld(void *arg)
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 @@ void HandleGeneratingWorldAbortion(void)
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;