Mercurial > hg > openttd
changeset 11340:68be07dcdebb draft
(svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 12 Mar 2009 16:48:28 +0000 |
parents | a41eac9012e2 |
children | 7db19bd958af |
files | src/intro_gui.cpp |
diffstat | 1 files changed, 9 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ #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;