From ab5a51d462e99d40dd2584b5fea60c0f1b9dffb1 Mon Sep 17 00:00:00 2001 From: smatz Date: Sun, 31 May 2009 09:33:12 +0000 Subject: (svn r16475) -Codechange: move code invalidating Vehicle::last_station_visited to more logical place --- src/order_cmd.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 06f7029cc..6b0d56757 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1458,11 +1458,6 @@ void RemoveOrderFromAllVehicles(OrderType type, DestinationID destination) FOR_ALL_VEHICLES(v) { Order *order; - /* Forget about this station if this station is removed */ - if (v->last_station_visited == destination && type == OT_GOTO_STATION) { - v->last_station_visited = INVALID_STATION; - } - order = &v->current_order; if ((v->type == VEH_AIRCRAFT && order->IsType(OT_GOTO_DEPOT) ? OT_GOTO_STATION : order->GetType()) == type && v->current_order.GetDestination() == destination) { -- cgit v1.2.3-54-g00ecf