(svn r27161) -Fix [FS#6156] [FS#6206]: Reimplement the viewport drawing algorithm.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user