(svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window.

This commit is contained in:
rubidium 2009-03-12 16:48:28 +00:00
parent d5a2dc1d0b
commit 0f361aab6e

View File

@ -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;