Mercurial > hg > openttd
diff src/station_cmd.cpp @ 6683:6984c0dbbb07 draft
(svn r9914) -Codechange: prepare GTTS and the pathfinders to handle multiple road types on a single tile.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Thu, 24 May 2007 22:41:50 +0000 |
parents | 8451c7d3a664 |
children | d2fb32d942f7 |
line wrap: on
line diff
--- a/src/station_cmd.cpp +++ b/src/station_cmd.cpp @@ -2132,7 +2132,7 @@ } -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 @@ break; case TRANSPORT_ROAD: - if (IsRoadStopTile(tile)) { + if ((GetRoadTypes(tile) & sub_mode) != 0 && IsRoadStopTile(tile)) { return AxisToTrackBits(DiagDirToAxis(GetRoadStopDir(tile))) * 0x101; } break;