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 | c778716264b3c269775029143d54c93168957adc (patch) | |
tree | 632c341e983c1ff365c6cc9ac2b80ef650c7a24a /station_cmd.c | |
parent | 6b8b8395e46f1771021edf73c2cac6a2f149e12b (diff) | |
download | openttd-c778716264b3c269775029143d54c93168957adc.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; |