Changeset - r10526:06dd4f1e1e4b
[Not reviewed]
master
0 1 0
rubidium - 15 years ago 2009-01-02 19:45:46
rubidium@openttd.org
(svn r14783) -Fix (r12661): don't add vehicles with "go to nearest depot" to the vehicle list of the depot with index 0.
1 file changed with 1 insertions and 1 deletions:
0 comments (0 inline, 0 general)
src/vehiclelist.cpp
Show inline comments
 
@@ -116,7 +116,7 @@ void GenerateVehicleSortList(VehicleList
 
					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;
 
						}
0 comments (0 inline, 0 general)