Allows configuring the height at which rainforests start, which by default was controlled by dividing the map maxheight by 4 in landscape.cpp. Default setting is 8 which matches and should provide default behavior in new map creation.

This commit is contained in:
reldred
2021-03-20 20:53:22 +10:30
parent 4386da53ee
commit 07397783f8
7 changed files with 23 additions and 1 deletions

View File

@@ -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);