From 0f361aab6ea444a0ca3a2594ba2bb00d38e157ea Mon Sep 17 00:00:00 2001 From: rubidium Date: Thu, 12 Mar 2009 16:48:28 +0000 Subject: (svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window. --- src/intro_gui.cpp | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3-70-g09d2