From 1a1049bc0db4e29402e950e56f3a6873c1f5a0ab Mon Sep 17 00:00:00 2001 From: Patric Stout Date: Wed, 24 Mar 2021 09:42:54 +0100 Subject: 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. --- src/screenshot.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/screenshot.cpp') diff --git a/src/screenshot.cpp b/src/screenshot.cpp index a1ad6bfad..12047f4ad 100644 --- a/src/screenshot.cpp +++ b/src/screenshot.cpp @@ -820,7 +820,7 @@ static void HeightmapCallback(void *userdata, void *buffer, uint y, uint pitch, while (n > 0) { TileIndex ti = TileXY(MapMaxX(), y); for (uint x = MapMaxX(); true; x--) { - *buf = 256 * TileHeight(ti) / (1 + _settings_game.construction.max_heightlevel); + *buf = 256 * TileHeight(ti) / (1 + _settings_game.construction.map_height_limit); buf++; if (x == 0) break; ti = TILE_ADDXY(ti, -1, 0); -- cgit v1.2.3-54-g00ecf