summaryrefslogtreecommitdiff
path: root/src/table
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/table
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/table')
-rw-r--r--src/table/settings.ini11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/table/settings.ini b/src/table/settings.ini
index ae6a40e9f..694268e76 100644
--- a/src/table/settings.ini
+++ b/src/table/settings.ini
@@ -405,6 +405,17 @@ strval = STR_CONFIG_SETTING_MAP_HEIGHT_LIMIT_VALUE
proc = ChangeMaxHeightLevel
cat = SC_ADVANCED
+[SDT_VAR]
+base = GameSettings
+var = game_creation.heightmap_height
+type = SLE_UINT8
+flags = SLF_NOT_IN_SAVE | SLF_NO_NETWORK_SYNC
+guiflags = SGF_NEWGAME_ONLY
+def = MAP_HEIGHT_LIMIT_AUTO_MINIMUM
+min = MIN_HEIGHTMAP_HEIGHT
+max = MAX_MAP_HEIGHT_LIMIT
+interval = 1
+
[SDT_BOOL]
base = GameSettings
var = construction.build_on_slopes