(svn r27305) -Fix [FS#6320]: Account for road-bridges and drive-through-stops in CanFollowRoad.

This commit is contained in:
frosch 2015-06-20 12:40:04 +00:00
parent fc50ff6531
commit 0e378747db
1 changed files with 6 additions and 1 deletions

View File

@ -1317,8 +1317,13 @@ static bool CanFollowRoad(TileIndex tile, DiagDirection dir)
case MP_ROAD:
return target_rb != ROAD_NONE;
case MP_HOUSE:
case MP_STATION:
return IsDriveThroughStopTile(tile);
case MP_TUNNELBRIDGE:
return GetTunnelBridgeTransportType(tile) == TRANSPORT_ROAD;
case MP_HOUSE:
case MP_INDUSTRY:
case MP_OBJECT:
return false;