summaryrefslogtreecommitdiff
path: root/src/autoslope.h
diff options
context:
space:
mode:
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));
}