(svn r4758) - Newstations: add support for 'blocked' station tiles, which no train can pass.

This commit is contained in:
peter1138
2006-05-06 22:08:14 +00:00
parent 6b8b8395e4
commit c778716264
4 changed files with 26 additions and 1 deletions

View File

@@ -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;