summaryrefslogtreecommitdiff
path: root/src/intro_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-13 17:34:05 +0000
committerrubidium <rubidium@openttd.org>2007-06-13 17:34:05 +0000
commit8ed345d5fbd14f75a22807eece0836fc38f6e820 (patch)
tree608cac548a8b8ace91dd62d682965f7d498a36fd /src/intro_gui.cpp
parent407519f8bc6ba36a4d547e447c7af7106a70efcf (diff)
downloadopenttd-8ed345d5fbd14f75a22807eece0836fc38f6e820.tar.xz
(svn r10145) -Fix: make compiling with networking disabled (again) possible.
Diffstat (limited to 'src/intro_gui.cpp')
-rw-r--r--src/intro_gui.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp
index 7a0c7a954..6378d0252 100644
--- a/src/intro_gui.cpp
+++ b/src/intro_gui.cpp
@@ -64,9 +64,11 @@ static void SelectGameWndProc(Window *w, WindowEvent *e)
break;
case WE_CLICK:
+#ifdef ENABLE_NETWORK
/* 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;
+#endif /* ENABLE_NETWORK */
switch (e->we.click.widget) {
case 2: ShowGenerateLandscape(); break;