summaryrefslogtreecommitdiff
path: root/intro_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-23 00:24:44 +0000
committerdarkvater <darkvater@openttd.org>2004-12-23 00:24:44 +0000
commit5eeb971de0a708051a67b9613c66810420dc7e09 (patch)
treec61005fca393d8636f471b3f6497712970f87b04 /intro_gui.c
parent552cb7ad60da77640ebcc9ec0f50b7611f130f90 (diff)
downloadopenttd-5eeb971de0a708051a67b9613c66810420dc7e09.tar.xz
(svn r1240) -Fix: OpenTTD once again compiles if ENABLE_NETWORK is disabled.
-Fix: removed some warnings -Enabled ENABLE_NETWORK on windows again which I accidentally commented out.
Diffstat (limited to 'intro_gui.c')
-rw-r--r--intro_gui.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/intro_gui.c b/intro_gui.c
index a4f77fcb0..baa64d785 100644
--- a/intro_gui.c
+++ b/intro_gui.c
@@ -57,15 +57,14 @@ static void SelectGameWndProc(Window *w, WindowEvent *e) {
case 4: ShowPatchesSelection(); break;
case 5: DoCommandP(0, InteractiveRandom(), 0, NULL, CMD_CREATE_SCENARIO); break;
case 7:
-#ifdef ENABLE_NETWORK
+ #ifdef ENABLE_NETWORK
if (!_network_available) {
- ShowErrorMessage(-1,STR_NETWORK_ERR_NOTAVAILABLE, 0, 0);
- } else {
+ ShowErrorMessage(-1, STR_NETWORK_ERR_NOTAVAILABLE, 0, 0);
+ } else
ShowNetworkGameWindow();
- }
-#else
- ShowErrorMessage(-1,STR_NETWORK_ERR_NOTAVAILABLE, 0, 0);
-#endif /* ENABLE_NETWORK */
+ #else
+ ShowErrorMessage(-1 ,STR_NETWORK_ERR_NOTAVAILABLE, 0, 0);
+ #endif /* ENABLE_NETWORK */
break;
case 8: ShowGameOptions(); break;
case 9: ShowGameDifficulty(); break;