Changeset - r21831:43d42bf5eae6
[Not reviewed]
master
0 1 0
frosch - 10 years ago 2014-10-09 19:52:07
frosch@openttd.org
(svn r26983) -Fix: Account for max_heightlevel when saving heightmaps.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/screenshot.cpp
Show inline comments
 
@@ -783,7 +783,7 @@ static void HeightmapCallback(void *user
 
	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);
0 comments (0 inline, 0 general)