diff options
author | rubidium <rubidium@openttd.org> | 2009-03-12 16:48:28 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-03-12 16:48:28 +0000 |
commit | 0f361aab6ea444a0ca3a2594ba2bb00d38e157ea (patch) | |
tree | c005d9644b88fc400204a3c5b5438ccac60a2751 | |
parent | d5a2dc1d0bf5af3b09965cbe11e8238432af05c1 (diff) | |
download | openttd-0f361aab6ea444a0ca3a2594ba2bb00d38e157ea.tar.xz |
(svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window.
-rw-r--r-- | src/intro_gui.cpp | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/intro_gui.cpp b/src/intro_gui.cpp index 986cd95d4..f2457eca3 100644 --- a/src/intro_gui.cpp +++ b/src/intro_gui.cpp @@ -20,6 +20,7 @@ #include "functions.h" #include "newgrf_config.h" #include "ai/ai_gui.hpp" +#include "gfx_func.h" #include "table/strings.h" #include "table/sprites.h" @@ -106,7 +107,14 @@ public: #endif /* ENABLE_NETWORK */ switch (widget) { - case SGI_GENERATE_GAME: ShowGenerateLandscape(); break; + case SGI_GENERATE_GAME: + if (_ctrl_pressed) { + StartNewGameWithoutGUI(GENERATE_NEW_SEED); + } else { + ShowGenerateLandscape(); + } + break; + case SGI_LOAD_GAME: ShowSaveLoadDialog(SLD_LOAD_GAME); break; case SGI_PLAY_SCENARIO: ShowSaveLoadDialog(SLD_LOAD_SCENARIO); break; case SGI_PLAY_HEIGHTMAP: ShowSaveLoadDialog(SLD_LOAD_HEIGHTMAP); break; |