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
commit28c1dc3e396c221b7d2a740ed49ce881bfe23384 (patch)
treec61005fca393d8636f471b3f6497712970f87b04 /intro_gui.c
parentc4836bbd70223842a9df4f412444ece44d9b1147 (diff)
downloadopenttd-28c1dc3e396c221b7d2a740ed49ce881bfe23384.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;