diff --git a/src/landscape.cpp b/src/landscape.cpp index 8f08fbc123..ae890f55ed 100644 --- a/src/landscape.cpp +++ b/src/landscape.cpp @@ -995,7 +995,7 @@ static void CreateDesertOrRainForest() { TileIndex update_freq = MapSize() / 4; const TileIndexDiffC *data; - uint max_desert_height = CeilDiv(_settings_game.construction.max_heightlevel, 4); + uint max_desert_height = _settings_game.game_creation.rainforest_line_height; for (TileIndex tile = 0; tile != MapSize(); ++tile) { if ((tile % update_freq) == 0) IncreaseGeneratingWorldProgress(GWP_LANDSCAPE); diff --git a/src/lang/english.txt b/src/lang/english.txt index b7cf65202f..c165bd8dc4 100644 --- a/src/lang/english.txt +++ b/src/lang/english.txt @@ -1447,6 +1447,8 @@ STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE :Maximum distanc STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT :Limit for how far from the map border oil refineries and oil rigs can be constructed. On island maps this ensures they are near the coast. On maps larger than 256 tiles, this value is scaled up. STR_CONFIG_SETTING_SNOWLINE_HEIGHT :Snow line height: {STRING2} STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT :Control at what height snow starts in sub-arctic landscape. Snow also affects industry generation and town growth requirements +STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT :Rainforest line height: {STRING} +STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT :Control at what height rainforest starts in sub-tropic landscape. Snow also affects industry generation and town growth requirements STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN :Roughness of terrain: {STRING2} STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT :(TerraGenesis only) Choose the frequency of hills: Smooth landscapes have fewer, more wide-spread hills. Rough landscapes have many hills, which may look repetitive STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH :Very Smooth diff --git a/src/lang/english_AU.txt b/src/lang/english_AU.txt index b28b6e2746..2bb5d19dec 100644 --- a/src/lang/english_AU.txt +++ b/src/lang/english_AU.txt @@ -1273,6 +1273,8 @@ STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE :Maximum distanc STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT :Oil refineries are only constructed near the map border, that is at the coast for island maps STR_CONFIG_SETTING_SNOWLINE_HEIGHT :Snow line height: {STRING} STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT :Control at what height snow starts in sub-arctic landscape. Snow also affects industry generation and town growth requirements +STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT :Rainforest line height: {STRING} +STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT :Control at what height rainforest starts in sub-tropic landscape. Snow also affects industry generation and town growth requirements STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN :Roughness of terrain: {STRING} STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT :(TerraGenesis only) Choose the frequency of hills: Smooth landscapes have fewer, more wide-spread hills. Rough landscapes have many hills, which may look repetitive STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH :Very Smooth diff --git a/src/lang/english_US.txt b/src/lang/english_US.txt index aa5a5e58f5..13b8e9ba1a 100644 --- a/src/lang/english_US.txt +++ b/src/lang/english_US.txt @@ -1339,6 +1339,8 @@ STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE :Maximum distanc STR_CONFIG_SETTING_OIL_REF_EDGE_DISTANCE_HELPTEXT :Limit for how far from the map border oil refineries and oil rigs can be constructed. On island maps this ensures they are near the coast. On maps larger than 256 tiles, this value is scaled up. STR_CONFIG_SETTING_SNOWLINE_HEIGHT :Snow line height: {STRING} STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT :Control at what height snow starts in sub-arctic landscape. Snow also affects industry generation and town growth requirements +STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT :Rainforest line height: {STRING} +STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT :Control at what height rainforest starts in sub-tropic landscape. Snow also affects industry generation and town growth requirements STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN :Roughness of terrain: {STRING} STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_HELPTEXT :(TerraGenesis only) Choose the frequency of hills: Smooth landscapes have fewer, more wide-spread hills. Rough landscapes have many hills, which may look repetitive STR_CONFIG_SETTING_ROUGHNESS_OF_TERRAIN_VERY_SMOOTH :Very Smooth diff --git a/src/settings_gui.cpp b/src/settings_gui.cpp index 4c51308b88..41840484c4 100644 --- a/src/settings_gui.cpp +++ b/src/settings_gui.cpp @@ -1814,6 +1814,7 @@ static SettingsContainer &GetSettingsTree() genworld->Add(new SettingEntry("game_creation.tgen_smoothness")); genworld->Add(new SettingEntry("game_creation.variety")); genworld->Add(new SettingEntry("game_creation.snow_line_height")); + genworld->Add(new SettingEntry("game_creation.rainforest_line_height")); genworld->Add(new SettingEntry("game_creation.amount_of_rivers")); genworld->Add(new SettingEntry("game_creation.tree_placer")); genworld->Add(new SettingEntry("vehicle.road_side")); diff --git a/src/settings_type.h b/src/settings_type.h index b4b7c4b370..703eb3184c 100644 --- a/src/settings_type.h +++ b/src/settings_type.h @@ -361,6 +361,7 @@ struct GameCreationSettings { byte land_generator; ///< the landscape generator byte oil_refinery_limit; ///< distance oil refineries allowed from map edge byte snow_line_height; ///< the configured snow line height + byte rainforest_line_height; ///< the configured rainforest line height byte tgen_smoothness; ///< how rough is the terrain from 0-3 byte tree_placer; ///< the tree placer algorithm byte heightmap_rotation; ///< rotation director for the heightmap diff --git a/src/table/settings.ini b/src/table/settings.ini index b6fd2e3cfc..28bcc0606e 100644 --- a/src/table/settings.ini +++ b/src/table/settings.ini @@ -2217,6 +2217,20 @@ strhelp = STR_CONFIG_SETTING_SNOWLINE_HEIGHT_HELPTEXT strval = STR_JUST_COMMA cat = SC_BASIC +[SDT_VAR] +base = GameSettings +var = game_creation.rainforest_line_height +type = SLE_UINT8 +guiflags = SGF_NO_NETWORK +def = 8 +min = 1 +max = 255 +interval = 1 +str = STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT +strhelp = STR_CONFIG_SETTING_RAINFORESTLINE_HEIGHT_HELPTEXT +strval = STR_JUST_COMMA +cat = SC_BASIC + ;;game_creation.desert_amount [SDT_NULL] length = 1