From 6f24a1ca7a244d52dc76e0068812d6e817c42919 Mon Sep 17 00:00:00 2001 From: rubidium Date: Mon, 30 Apr 2007 20:05:31 +0000 Subject: (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. --- src/intro_gui.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2