diff options
author | Darkvater <darkvater@openttd.org> | 2006-10-12 14:59:27 +0000 |
---|---|---|
committer | Darkvater <darkvater@openttd.org> | 2006-10-12 14:59:27 +0000 |
commit | cad526ef3658ad6420939a6d51707c9dbfee97c3 (patch) | |
tree | 9d8040d778bee72bdeda716299434c03e98d3b14 /intro_gui.c | |
parent | 15bf48acfda4ce5e5291e0a68292d7f9d9b6a569 (diff) | |
download | openttd-cad526ef3658ad6420939a6d51707c9dbfee97c3.tar.xz |
(svn r6754) -Codechange: Remove some #idef ENABLE_NETWORK specific defines. With networking
disabled hardcode _networking/_network_available to zero and let the compiler
handle all optimizations.
Diffstat (limited to 'intro_gui.c')
-rw-r--r-- | intro_gui.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/intro_gui.c b/intro_gui.c index 0134b053c..8e2d8190e 100644 --- a/intro_gui.c +++ b/intro_gui.c @@ -13,6 +13,7 @@ #include "settings.h" #include "heightmap.h" #include "genworld.h" +#include "network_gui.h" static const Widget _select_game_widgets[] = { { WWT_CAPTION, RESIZE_NONE, 13, 0, 335, 0, 13, STR_0307_OPENTTD, STR_NULL}, @@ -66,15 +67,11 @@ static void SelectGameWndProc(Window *w, WindowEvent *e) case 5: ShowSaveLoadDialog(SLD_LOAD_HEIGHTMAP); break; case 6: ShowCreateScenario(); break; case 7: -#ifdef ENABLE_NETWORK if (!_network_available) { ShowErrorMessage(INVALID_STRING_ID, STR_NETWORK_ERR_NOTAVAILABLE, 0, 0); } else { ShowNetworkGameWindow(); } -#else - ShowErrorMessage(INVALID_STRING_ID ,STR_NETWORK_ERR_NOTAVAILABLE, 0, 0); -#endif break; case 8: case 9: case 10: case 11: RaiseWindowWidget(w, _opt_newgame.landscape + 8); |