summaryrefslogtreecommitdiff
path: root/src/genworld.cpp
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-24 20:51:41 +0100
committerPatric Stout <github@truebrain.nl>2021-03-26 12:22:32 +0100
commit45c2c29c35afeb4116ff8fb3393ddc67ea1708da (patch)
tree64c24df6f75024b394506f091285174206562ffa /src/genworld.cpp
parent422e132845255264314cd79aa14361d0df0905d7 (diff)
downloadopenttd-45c2c29c35afeb4116ff8fb3393ddc67ea1708da.tar.xz
Add: allow setting the highest mountain for heightmaps
It will add some slack to the map height limit if that was set to auto.
Diffstat (limited to 'src/genworld.cpp')
-rw-r--r--src/genworld.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/genworld.cpp b/src/genworld.cpp
index d357a1516..28b28ac05 100644
--- a/src/genworld.cpp
+++ b/src/genworld.cpp
@@ -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 {