diff options
author | peter1138 <peter1138@openttd.org> | 2006-05-06 22:08:14 +0000 |
---|---|---|
committer | peter1138 <peter1138@openttd.org> | 2006-05-06 22:08:14 +0000 |
commit | 6e2b98b060f2aaeb2b0852f04296dc89823ef0bb (patch) | |
tree | 632c341e983c1ff365c6cc9ac2b80ef650c7a24a /station_map.h | |
parent | 10992deeb3be7b555246222d0f9242145c5ea3b2 (diff) | |
download | openttd-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.h | 3 |
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); } |