diff options
author | Patric Stout <truebrain@openttd.org> | 2021-03-24 20:51:41 +0100 |
---|---|---|
committer | Patric Stout <github@truebrain.nl> | 2021-03-26 12:22:32 +0100 |
commit | 45c2c29c35afeb4116ff8fb3393ddc67ea1708da (patch) | |
tree | 64c24df6f75024b394506f091285174206562ffa /src/tile_type.h | |
parent | 422e132845255264314cd79aa14361d0df0905d7 (diff) | |
download | openttd-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.h | 2 |
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) |