From 0c352ede7a5f0e961cbb9c2d1f07db8fb3a2303f Mon Sep 17 00:00:00 2001 From: rubidium Date: Fri, 2 Jan 2009 19:45:46 +0000 Subject: (svn r14783) -Fix (r12661): don't add vehicles with "go to nearest depot" to the vehicle list of the depot with index 0. --- src/vehiclelist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/vehiclelist.cpp') diff --git a/src/vehiclelist.cpp b/src/vehiclelist.cpp index 6579397a7..af3da1b12 100644 --- a/src/vehiclelist.cpp +++ b/src/vehiclelist.cpp @@ -116,7 +116,7 @@ void GenerateVehicleSortList(VehicleList *list, VehicleType type, Owner owner, u const Order *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; break; } -- cgit v1.2.3-54-g00ecf