equal
deleted
inserted
replaced
1573 |
1573 |
1574 if (IsDriveThroughStopTile(v->tile)) { |
1574 if (IsDriveThroughStopTile(v->tile)) { |
1575 TileIndex next_tile = TILE_ADD(v->tile, TileOffsByDir(v->direction)); |
1575 TileIndex next_tile = TILE_ADD(v->tile, TileOffsByDir(v->direction)); |
1576 RoadStop::Type type = IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? RoadStop::BUS : RoadStop::TRUCK; |
1576 RoadStop::Type type = IsCargoInClass(v->cargo_type, CC_PASSENGERS) ? RoadStop::BUS : RoadStop::TRUCK; |
1577 |
1577 |
1578 assert(HASBIT(v->u.road.state, RVS_IS_STOPPING)); |
|
1579 |
|
1580 /* Check if next inline bay is free */ |
1578 /* Check if next inline bay is free */ |
1581 if (IsDriveThroughStopTile(next_tile) && (GetRoadStopType(next_tile) == type)) { |
1579 if (IsDriveThroughStopTile(next_tile) && (GetRoadStopType(next_tile) == type)) { |
1582 RoadStop *rs_n = GetRoadStopByTile(next_tile, type); |
1580 RoadStop *rs_n = GetRoadStopByTile(next_tile, type); |
1583 |
1581 |
1584 if (rs_n->IsFreeBay(HASBIT(v->u.road.state, RVS_USING_SECOND_BAY))) { |
1582 if (rs_n->IsFreeBay(HASBIT(v->u.road.state, RVS_USING_SECOND_BAY))) { |