Changeset - r11335:c7c33f62d918
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-03-12 16:48:28
rubidium@openttd.org
(svn r15690) -Feature(tte(tte)): CTRL-"New Game" skips the "World generation" window.
1 file changed with 9 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/intro_gui.cpp
Show inline comments
 
@@ -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;
0 comments (0 inline, 0 general)