summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2009-12-20 09:26:37 +0000
committerpeter1138 <peter1138@openttd.org>2009-12-20 09:26:37 +0000
commit2a53179f4db30bf380c2db988f2e02bf28abfab3 (patch)
tree4df44a0fd6a53ace19dd5cd4c6a8a5d4c6351e14 /src
parent37ce32106de909c6da1e60fd3fdff5deda8d0e41 (diff)
downloadopenttd-2a53179f4db30bf380c2db988f2e02bf28abfab3.tar.xz
(svn r18559) -Fix: When using original landscape generator, the terrain type and water level fields have no effect for arctic or tropic climates, so disable the dropdowns.
Diffstat (limited to 'src')
-rw-r--r--src/genworld_gui.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/genworld_gui.cpp b/src/genworld_gui.cpp
index afff51800..5d0550196 100644
--- a/src/genworld_gui.cpp
+++ b/src/genworld_gui.cpp
@@ -488,6 +488,9 @@ struct GenerateLandscapeWindow : public QueryStringBaseWindow {
this->SetWidgetLoweredState(GLAND_WATER_NE, HasBit(_settings_newgame.game_creation.water_borders, BORDER_NE));
this->SetWidgetLoweredState(GLAND_WATER_SE, HasBit(_settings_newgame.game_creation.water_borders, BORDER_SE));
this->SetWidgetLoweredState(GLAND_WATER_SW, HasBit(_settings_newgame.game_creation.water_borders, BORDER_SW));
+
+ this->SetWidgetsDisabledState(_settings_newgame.game_creation.land_generator == 0 && (_settings_newgame.game_creation.landscape == LT_ARCTIC || _settings_newgame.game_creation.landscape == LT_TROPIC),
+ GLAND_TERRAIN_PULLDOWN, GLAND_WATER_PULLDOWN, WIDGET_LIST_END);
}
/* Disable snowline if not hilly */
this->SetWidgetDisabledState(GLAND_SNOW_LEVEL_TEXT, _settings_newgame.game_creation.landscape != LT_ARCTIC);