changeset 18267:bd462bea68f1 draft

(svn r23103) -Codechange: replace TileHeight(x) * TILE_HEIGHT by TilePixelHeight(x)
author rubidium <rubidium@openttd.org>
date Fri, 04 Nov 2011 10:32:26 +0000
parents 4fb3f7ce4ea9
children b7b4ca0228f9
files src/screenshot.cpp
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -758,9 +758,9 @@
 	const ScreenshotFormat *sf;
 
 	/* We need to account for a hill or high building at tile 0,0. */
-	int extra_height_top = TileHeight(0) * TILE_HEIGHT + 150;
+	int extra_height_top = TilePixelHeight(0) + 150;
 	/* If there is a hill at the bottom don't create a large black area. */
-	int reclaim_height_bottom = TileHeight(MapSize() - 1) * TILE_HEIGHT;
+	int reclaim_height_bottom = TilePixelHeight(MapSize() - 1);
 
 	vp.zoom = ZOOM_LVL_WORLD_SCREENSHOT;
 	vp.left = 0;