diff options
Diffstat (limited to 'src/tile_map.cpp')
-rw-r--r-- | src/tile_map.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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; } |