mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-11 00:34:27 +00:00
(svn r23103) -Codechange: replace TileHeight(x) * TILE_HEIGHT by TilePixelHeight(x)
This commit is contained in:
parent
798f5a8608
commit
a72544d5e1
@ -758,9 +758,9 @@ static bool MakeWorldScreenshot()
|
|||||||
const ScreenshotFormat *sf;
|
const ScreenshotFormat *sf;
|
||||||
|
|
||||||
/* We need to account for a hill or high building at tile 0,0. */
|
/* 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. */
|
/* 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.zoom = ZOOM_LVL_WORLD_SCREENSHOT;
|
||||||
vp.left = 0;
|
vp.left = 0;
|
||||||
|
Loading…
Reference in New Issue
Block a user