(svn r9301) -Codechange: Use cargo class to determine if a road vehicle can stop in bus or truck stops.
This commit is contained in:
@@ -297,7 +297,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
|
||||
(facil=FACIL_DOCK, v->type == VEH_SHIP) ||
|
||||
(facil=FACIL_TRAIN, v->type == VEH_TRAIN) ||
|
||||
(facil=FACIL_AIRPORT, v->type == VEH_AIRCRAFT) ||
|
||||
(facil=FACIL_BUS_STOP, v->type == VEH_ROAD && v->cargo_type == CT_PASSENGERS) ||
|
||||
(facil=FACIL_BUS_STOP, v->type == VEH_ROAD && IsCargoInClass(v->cargo_type, CC_PASSENGERS)) ||
|
||||
(facil=FACIL_TRUCK_STOP, 1);
|
||||
if (st->facilities & facil) {
|
||||
order.type = OT_GOTO_STATION;
|
||||
|
Reference in New Issue
Block a user