From bd9f07e5a0a04f7a82dd7ce57a41d9e8bbab6b60 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 15 Jan 2011 18:19:04 +0000 Subject: (svn r21809) -Fix [FS#4404]: remove unreached automatic orders as well when reaching an ordered waypoint or depot (fonsinchen) --- src/order_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index fd4b64e4c..5d7976a7a 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -1733,6 +1733,7 @@ bool ProcessOrders(Vehicle *v) if (((v->current_order.IsType(OT_GOTO_STATION) && (v->current_order.GetNonStopType() & ONSF_NO_STOP_AT_DESTINATION_STATION)) || v->current_order.IsType(OT_GOTO_WAYPOINT)) && IsTileType(v->tile, MP_STATION) && v->current_order.GetDestination() == GetStationIndex(v->tile)) { + v->DeleteUnreachedAutoOrders(); /* We set the last visited station here because we do not want * the train to stop at this 'via' station if the next order * is a no-non-stop order; in that case not setting the last -- cgit v1.2.3-54-g00ecf