mirror of https://github.com/OpenTTD/OpenTTD.git
(svn r14783) -Fix (r12661): don't add vehicles with "go to nearest depot" to the vehicle list of the depot with index 0.
This commit is contained in:
parent
3000a62f53
commit
0c352ede7a
|
@ -116,7 +116,7 @@ void GenerateVehicleSortList(VehicleList *list, VehicleType type, Owner owner, u
|
||||||
const Order *order;
|
const Order *order;
|
||||||
|
|
||||||
FOR_VEHICLE_ORDERS(v, order) {
|
FOR_VEHICLE_ORDERS(v, order) {
|
||||||
if (order->IsType(OT_GOTO_DEPOT) && order->GetDestination() == index) {
|
if (order->IsType(OT_GOTO_DEPOT) && !(order->GetDepotActionType() & ODATFB_NEAREST_DEPOT) && order->GetDestination() == index) {
|
||||||
*list->Append() = v;
|
*list->Append() = v;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue