From 3adf082db258d04728cf573c0d79ee708c502b7d Mon Sep 17 00:00:00 2001 From: frosch Date: Sun, 22 Feb 2015 14:42:34 +0000 Subject: (svn r27161) -Fix [FS#6156] [FS#6206]: Reimplement the viewport drawing algorithm. --- src/tile_map.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/tile_map.cpp') diff --git a/src/tile_map.cpp b/src/tile_map.cpp index 17d7d6a39..c566ad02c 100644 --- a/src/tile_map.cpp +++ b/src/tile_map.cpp @@ -116,7 +116,9 @@ Slope GetTileSlope(TileIndex tile, int *h) { assert(tile < MapSize()); - if (!IsInnerTile(tile)) { + uint x = TileX(tile); + uint y = TileY(tile); + if (x == MapMaxX() || y == MapMaxY()) { if (h != NULL) *h = TileHeight(tile); return SLOPE_FLAT; } -- cgit v1.2.3-54-g00ecf