(svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes.

This commit is contained in:
frosch
2011-09-25 13:35:17 +00:00
parent 035420f318
commit 1df095f114
6 changed files with 30 additions and 37 deletions

View File

@@ -33,7 +33,7 @@
*/
static inline bool AutoslopeCheckForEntranceEdge(TileIndex tile, uint z_new, Slope tileh_new, DiagDirection entrance)
{
if (IsSteepSlope(tileh_new) || (GetTileMaxZ(tile) != z_new + GetSlopeMaxZ(tileh_new))) return false;
if (GetTileMaxZ(tile) != z_new + GetSlopeMaxZ(tileh_new)) return false;
return ((tileh_new == SLOPE_FLAT) || CanBuildDepotByTileh(entrance, tileh_new));
}