forked from mirror/OpenTTD
Change: rename setting "max_heightlevel" to "map_height_limit"
This better reflects what it is, and hopefully removes a bit of the confusion people are having what this setting actually does. Additionally, update the text on the setting to better inform users what it is doing exactly, so they can make an educated decision on how to change it. Next commit will introduce an "auto" value, which should be the new default. The rename has as added benefit that everyone will start out on the "auto" value.
This commit is contained in:
committed by
Patric Stout
parent
23f27db8c3
commit
1a1049bc0d
@@ -368,7 +368,7 @@ static void GrayscaleToMapHeights(uint img_width, uint img_height, byte *map)
|
||||
/* 0 is sea level.
|
||||
* Other grey scales are scaled evenly to the available height levels > 0.
|
||||
* (The coastline is independent from the number of height levels) */
|
||||
heightmap_height = 1 + (heightmap_height - 1) * _settings_game.construction.max_heightlevel / 255;
|
||||
heightmap_height = 1 + (heightmap_height - 1) * _settings_game.construction.map_height_limit / 255;
|
||||
}
|
||||
|
||||
SetTileHeight(tile, heightmap_height);
|
||||
|
Reference in New Issue
Block a user