(svn r26983) -Fix: Account for max_heightlevel when saving heightmaps.

This commit is contained in:
frosch 2014-10-09 19:52:07 +00:00
parent 7edec859bd
commit 7979f9a475
1 changed files with 1 additions and 1 deletions

View File

@ -783,7 +783,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 = 16 * TileHeight(ti);
*buf = 256 * TileHeight(ti) / (1 + _settings_game.construction.max_heightlevel);
buf++;
if (x == 0) break;
ti = TILE_ADDXY(ti, -1, 0);