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_cmd.c | |
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_cmd.c')
-rw-r--r-- | station_cmd.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/station_cmd.c b/station_cmd.c index b748a9021..9605248f9 100644 --- a/station_cmd.c +++ b/station_cmd.c @@ -2124,6 +2124,8 @@ static uint32 GetTileTrackStatus_Station(TileIndex tile, TransportType mode) switch (mode) { case TRANSPORT_RAIL: if (IsRailwayStation(tile)) { + if (IsStationTileBlocked(tile)) return 0; + return TrackToTrackBits(GetRailStationTrack(tile)) * 0x101; } break; |