summaryrefslogtreecommitdiff
path: root/src/tile_type.h
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/tile_type.h
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/tile_type.h')
-rw-r--r--src/tile_type.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tile_type.h b/src/tile_type.h
index 17b4ad206..efc057d2b 100644
--- a/src/tile_type.h
+++ b/src/tile_type.h
@@ -21,6 +21,8 @@ static const int MAX_VEHICLE_PIXEL_Y = 96; ///< Maximum heig
static const uint MAX_TILE_HEIGHT = 255; ///< Maximum allowed tile height
+static const uint MIN_HEIGHTMAP_HEIGHT = 1; ///< Lowest possible peak value for heightmap creation
+
static const uint MIN_MAP_HEIGHT_LIMIT = 15; ///< Lower bound of maximum allowed heightlevel (in the construction settings)
static const uint MAX_MAP_HEIGHT_LIMIT = MAX_TILE_HEIGHT; ///< Upper bound of maximum allowed heightlevel (in the construction settings)