summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-12-27 12:58:23 +0000
committerrubidium <rubidium@openttd.org>2009-12-27 12:58:23 +0000
commit04a888854775c5b4f886c5de3a2c1a0c4b26389c (patch)
tree0c73d266bd40d44e15d22bd582c2f8f3743141fc /src
parentfb9eba67d124ef136ed7447cbd81f0ac2e276494 (diff)
downloadopenttd-04a888854775c5b4f886c5de3a2c1a0c4b26389c.tar.xz
(svn r18643) -Fix [FS#3436]: rotation could not be changed for heightmaps
Diffstat (limited to 'src')
-rw-r--r--src/genworld_gui.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index 517e33d5b..fcd6855ed 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -688,6 +688,8 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
case GLAND_TREE_PULLDOWN: _settings_newgame.game_creation.tree_placer = index; break;
case GLAND_SMOOTHNESS_PULLDOWN: _settings_newgame.game_creation.tgen_smoothness = index; break;
case GLAND_VARIETY_PULLDOWN: _settings_newgame.game_creation.variety = index; break;
+ case GLAND_LANDSCAPE_PULLDOWN: _settings_newgame.game_creation.land_generator = index; break;
+ case GLAND_HEIGHTMAP_ROTATION_PULLDOWN: _settings_newgame.game_creation.heightmap_rotation = index; break;
case GLAND_TOWN_PULLDOWN:
if ((uint)index == CUSTOM_TOWN_NUMBER_DIFFICULTY) {
@@ -702,15 +704,6 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
IConsoleSetSetting("difficulty.number_industries", index);
break;
- case GLAND_LANDSCAPE_PULLDOWN:
- /* case GLAND_HEIGHTMAP_PULLDOWN: */
- if (mode == GLWP_HEIGHTMAP) {
- _settings_newgame.game_creation.heightmap_rotation = index;
- } else {
- _settings_newgame.game_creation.land_generator = index;
- }
- break;
-
case GLAND_TERRAIN_PULLDOWN: {
GameMode old_gm = _game_mode;
_game_mode = GM_MENU;