diff options
Diffstat (limited to 'src/pathfind.cpp')
-rw-r--r-- | src/pathfind.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pathfind.cpp b/src/pathfind.cpp index 24180db12..ccbe47a14 100644 --- a/src/pathfind.cpp +++ b/src/pathfind.cpp @@ -170,10 +170,10 @@ static inline bool CanAccessTileInDir(TileIndex tile, DiagDirection side, Transp { if (tracktype == TRANSPORT_RAIL) { /* depot from wrong side */ - if (IsDepotTypeTile(tile, TRANSPORT_RAIL) && GetRailDepotDirection(tile) != side) return false; + if (IsRailDepotTile(tile) && GetRailDepotDirection(tile) != side) return false; } else if (tracktype == TRANSPORT_ROAD) { /* depot from wrong side */ - if (IsDepotTypeTile(tile, TRANSPORT_ROAD) && GetRoadDepotDirection(tile) != side) return false; + if (IsRoadDepotTile(tile) && GetRoadDepotDirection(tile) != side) return false; /* non-driverthrough road station from wrong side */ if (IsStandardRoadStopTile(tile) && GetRoadStopDir(tile) != side) return false; } |