(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.
authorrubidium
Mon, 30 Apr 2007 20:05:31 +0000
changeset 6555 418ca90354d4
parent 6554 c780a3382f38
child 6556 404da976ca9a
(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
--- a/src/intro_gui.cpp	Sun Apr 29 22:51:12 2007 +0000
+++ b/src/intro_gui.cpp	Mon Apr 30 20:05:31 2007 +0000
@@ -64,6 +64,10 @@
 		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;