summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2011-11-04 10:32:26 +0000
committerrubidium <rubidium@openttd.org>2011-11-04 10:32:26 +0000
commita72544d5e18a632510c8072b393905473f47bada (patch)
treef8df227b16acd204813d2e0311526de3a3da90a1 /src
parent798f5a860876ac3f61e6ecc989e3086caac480bd (diff)
downloadopenttd-a72544d5e18a632510c8072b393905473f47bada.tar.xz
(svn r23103) -Codechange: replace TileHeight(x) * TILE_HEIGHT by TilePixelHeight(x)
Diffstat (limited to 'src')
-rw-r--r--src/screenshot.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/screenshot.cpp b/src/screenshot.cpp
index 78a9b1af3..dcf35127c 100644
--- a/src/screenshot.cpp
+++ b/src/screenshot.cpp
@@ -758,9 +758,9 @@ static bool MakeWorldScreenshot()
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;