diff options
author | frosch <frosch@openttd.org> | 2015-02-22 14:42:34 +0000 |
---|---|---|
committer | frosch <frosch@openttd.org> | 2015-02-22 14:42:34 +0000 |
commit | 3adf082db258d04728cf573c0d79ee708c502b7d (patch) | |
tree | eeb3bfbe22b2ebe295302ba43802b82e160e7cd7 /src/tile_map.cpp | |
parent | cfac8dbbc6076d9f782e8c406128686f58b428df (diff) | |
download | openttd-3adf082db258d04728cf573c0d79ee708c502b7d.tar.xz |
(svn r27161) -Fix [FS#6156] [FS#6206]: Reimplement the viewport drawing algorithm.
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; } |