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

@@ -291,6 +291,8 @@ void GenerateWorld(GenWorldMode mode, uint size_x, uint size_y, bool reset_setti
if (_gw.mode == GWM_EMPTY && _game_mode != GM_MENU) {
estimated_height = _settings_game.game_creation.se_flat_world_height;
} else if (_gw.mode == GWM_HEIGHTMAP) {
estimated_height = _settings_game.game_creation.heightmap_height;
} else if (_settings_game.game_creation.land_generator == LG_TERRAGENESIS) {
estimated_height = GetEstimationTGPMapHeight();
} else {