From 43c8cd1d5e7d0fa2b7e369eac0239a41ae6c0bb1 Mon Sep 17 00:00:00 2001 From: planetmaker Date: Wed, 18 May 2011 12:19:58 +0000 Subject: (svn r22473) -Codechange: Automatic orders are better called implicit orders as no real order influencing path finding is added --- 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 2ead37d01..4fc0f9ff3 100644 --- a/src/vehiclelist.cpp +++ b/src/vehiclelist.cpp @@ -118,7 +118,7 @@ bool GenerateVehicleSortList(VehicleList *list, const VehicleListIdentifier &vli const Order *order; FOR_VEHICLE_ORDERS(v, order) { - if ((order->IsType(OT_GOTO_STATION) || order->IsType(OT_GOTO_WAYPOINT) || order->IsType(OT_AUTOMATIC)) + if ((order->IsType(OT_GOTO_STATION) || order->IsType(OT_GOTO_WAYPOINT) || order->IsType(OT_IMPLICIT)) && order->GetDestination() == vli.index) { *list->Append() = v; break; -- cgit v1.2.3-54-g00ecf