diff options
author | rubidium <rubidium@openttd.org> | 2007-05-24 22:41:50 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-05-24 22:41:50 +0000 |
commit | 821e58ac9514f7fcd43e01115c4dc2a09b4ee45f (patch) | |
tree | 4ec491716328387ce65a5c1f45b836b6f5f57ce2 /src/station_cmd.cpp | |
parent | d0a39a231a6c459a85cabb72fc7d4de8a24d9c93 (diff) | |
download | openttd-821e58ac9514f7fcd43e01115c4dc2a09b4ee45f.tar.xz |
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
Diffstat (limited to 'src/station_cmd.cpp')
-rw-r--r-- | src/station_cmd.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/station_cmd.cpp b/src/station_cmd.cpp index 404fca9ad..026c503d7 100644 --- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2132,7 +2132,7 @@ static void GetTileDesc_Station(TileIndex tile, TileDesc *td) } -static uint32 GetTileTrackStatus_Station(TileIndex tile, TransportType mode) +static uint32 GetTileTrackStatus_Station(TileIndex tile, TransportType mode, uint sub_mode) { switch (mode) { case TRANSPORT_RAIL: @@ -2154,7 +2154,7 @@ static uint32 GetTileTrackStatus_Station(TileIndex tile, TransportType mode) break; case TRANSPORT_ROAD: - if (IsRoadStopTile(tile)) { + if ((GetRoadTypes(tile) & sub_mode) != 0 && IsRoadStopTile(tile)) { return AxisToTrackBits(DiagDirToAxis(GetRoadStopDir(tile))) * 0x101; } break; |