mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-04 06:00:15 +00:00
(svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window.
This commit is contained in:
parent
d5a2dc1d0b
commit
0f361aab6e
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user