(svn r27161) -Fix [FS#6156] [FS#6206]: Reimplement the viewport drawing algorithm.

This commit is contained in:
frosch
2015-02-22 14:42:34 +00:00
parent cfac8dbbc6
commit 3adf082db2
3 changed files with 88 additions and 438 deletions

View File

@@ -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;
}