Add: allow setting the highest mountain for heightmaps

It will add some slack to the map height limit if that was set
to auto.
This commit is contained in:
Patric Stout
2021-03-24 20:51:41 +01:00
committed by Patric Stout
parent 422e132845
commit 45c2c29c35
8 changed files with 75 additions and 4 deletions

View File

@@ -368,7 +368,7 @@ static void GrayscaleToMapHeights(uint img_width, uint img_height, byte *map)
/* 0 is sea level.
* Other grey scales are scaled evenly to the available height levels > 0.
* (The coastline is independent from the number of height levels) */
heightmap_height = 1 + (heightmap_height - 1) * _settings_game.construction.map_height_limit / 255;
heightmap_height = 1 + (heightmap_height - 1) * _settings_game.game_creation.heightmap_height / 255;
}
SetTileHeight(tile, heightmap_height);