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

@@ -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)