summaryrefslogtreecommitdiff
path: root/src/tile_type.h
diff options
context:
space:
mode:
authorPatric Stout <truebrain@openttd.org>2021-03-24 10:29:01 +0100
committerPatric Stout <github@truebrain.nl>2021-03-26 12:22:32 +0100
commit422e132845255264314cd79aa14361d0df0905d7 (patch)
tree21452e883fa2a1bec4280625fb0ce7a6dfb168b8 /src/tile_type.h
parent1a1049bc0db4e29402e950e56f3a6873c1f5a0ab (diff)
downloadopenttd-422e132845255264314cd79aa14361d0df0905d7.tar.xz
Feature: auto-detect map height limit based on generated map
This opens up the true power of the TGP terrain generator, as it is no longer constrainted by an arbitrary low map height limit, especially for extreme terrain types. In other words: on a 1kx1k map with "Alpinist" terrain type, the map is now really hilly with default settings. People can still manually limit the map height if they so wish, and after the terrain generation the limit is stored in the savegame as if the user set it. Cheats still allow you to change this value.
Diffstat (limited to 'src/tile_type.h')
-rw-r--r--src/tile_type.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/tile_type.h b/src/tile_type.h
index ad3d1b563..17b4ad206 100644
--- a/src/tile_type.h
+++ b/src/tile_type.h
@@ -22,7 +22,6 @@ 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_MAP_HEIGHT_LIMIT = 15; ///< Lower bound of maximum allowed heightlevel (in the construction settings)
-static const uint DEF_MAP_HEIGHT_LIMIT = 30; ///< Default 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)
static const uint MIN_SNOWLINE_HEIGHT = 2; ///< Minimum snowline height