summaryrefslogtreecommitdiff
path: root/src/autoslope.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2011-09-25 13:35:17 +0000
committerfrosch <frosch@openttd.org>2011-09-25 13:35:17 +0000
commit8d5c1479f417dc8a79997a6c4a1b357fb30a9411 (patch)
tree05f340e63c07d081cb44f5a7b6424b874e812057 /src/autoslope.h
parentfa1f8b309e13aa2872f6c520c0bcb121e559eb6b (diff)
downloadopenttd-8d5c1479f417dc8a79997a6c4a1b357fb30a9411.tar.xz
(svn r22960) -Feature: Allow depots, standard roadstops and airports on steep slopes.
Diffstat (limited to 'src/autoslope.h')
-rw-r--r--src/autoslope.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/autoslope.h b/src/autoslope.h
index 5d4eeb35f..e9bfa140f 100644
--- a/src/autoslope.h
+++ b/src/autoslope.h
@@ -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));
}