summaryrefslogtreecommitdiff
path: root/station_map.h
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2006-05-06 22:08:14 +0000
committerpeter1138 <peter1138@openttd.org>2006-05-06 22:08:14 +0000
commit6e2b98b060f2aaeb2b0852f04296dc89823ef0bb (patch)
tree632c341e983c1ff365c6cc9ac2b80ef650c7a24a /station_map.h
parent10992deeb3be7b555246222d0f9242145c5ea3b2 (diff)
downloadopenttd-6e2b98b060f2aaeb2b0852f04296dc89823ef0bb.tar.xz
(svn r4758) - Newstations: add support for 'blocked' station tiles, which no train can pass.
Diffstat (limited to 'station_map.h')
-rw-r--r--station_map.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/station_map.h b/station_map.h
index 721d236e3..0e9c949c8 100644
--- a/station_map.h
+++ b/station_map.h
@@ -187,7 +187,8 @@ static inline bool IsCompatibleTrainStationTile(TileIndex t1, TileIndex t2)
return
IsRailwayStationTile(t1) &&
IsCompatibleRail(GetRailType(t1), GetRailType(t2)) &&
- GetRailStationAxis(t1) == GetRailStationAxis(t2);
+ GetRailStationAxis(t1) == GetRailStationAxis(t2) &&
+ !IsStationTileBlocked(t1);
}