diff options
Diffstat (limited to 'src/screenshot.cpp')
-rw-r--r-- | src/screenshot.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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); |