summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-04-30 20:05:31 +0000
committerrubidium <rubidium@openttd.org>2007-04-30 20:05:31 +0000
commit0aad91f43bb6e11b6da2686cc555de063fa7c4bc (patch)
tree7b98965b9f26f2be9170ce8d5fdaee609a621c33 /src
parentcbd9a1bf0d1cf5ab2c73177cc58608e4ca463175 (diff)
downloadopenttd-0aad91f43bb6e11b6da2686cc555de063fa7c4bc.tar.xz
(svn r9757) -Fix [FS#1244842]: when you have closed the "Load game"/"New game" windows accessible from the "New Server" window, any creation of new game/loading from the intro menu should not start a server.
Diffstat (limited to 'src')
-rw-r--r--src/intro_gui.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index fe941e203..7a0c7a954 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -64,6 +64,10 @@ static void SelectGameWndProc(Window *w, WindowEvent *e)
break;
case WE_CLICK:
+ /* Do not create a network server when you (just) have closed one of the game
+ * creation/load windows for the network server. */
+ if (2 <= e->we.click.widget && e->we.click.widget <= 6) _is_network_server = false;
+
switch (e->we.click.widget) {
case 2: ShowGenerateLandscape(); break;
case 3: ShowSaveLoadDialog(SLD_LOAD_GAME); break;