MCPcopy Create free account
hub / github.com/OpenTTD/OpenTTD / GetMapHeightLimit

Function GetMapHeightLimit

src/genworld_gui.cpp:59–63  ·  view source on GitHub ↗

* Get the map height limit, or if set to "auto", the absolute limit. */

Source from the content-addressed store, hash-verified

57 * Get the map height limit, or if set to "auto", the absolute limit.
58 */
59static uint GetMapHeightLimit()
60{
61 if (_settings_newgame.construction.map_height_limit == 0) return MAX_MAP_HEIGHT_LIMIT;
62 return _settings_newgame.construction.map_height_limit;
63}
64
65/**
66 * Changes landscape type and sets genworld window dirty

Callers 7

OnInvalidateDataMethod · 0.85
OnClickMethod · 0.85
OnQueryTextFinishedMethod · 0.85
OnPaintMethod · 0.85
OnClickMethod · 0.85
OnQueryTextFinishedMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected