From 2c4d3192c69ec50f556a1537a705ca8d6c00bf81 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sun, 7 Oct 2018 11:32:15 +0100 Subject: [PATCH] Fix trains unnecessarily slowing down when passing waypoints --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index cfe0d6872b..546065734b 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -2679,7 +2679,7 @@ bool ProcessOrders(Vehicle *v) */ bool Order::ShouldStopAtStation(const Vehicle *v, StationID station, bool waypoint) const { - if (waypoint) return this->IsType(OT_GOTO_WAYPOINT) && this->dest == station; + if (waypoint) return this->IsType(OT_GOTO_WAYPOINT) && this->dest == station && this->IsWaitTimetabled(); if (this->IsType(OT_LOADING_ADVANCE) && this->dest == station) return true; bool is_dest_station = this->IsType(OT_GOTO_STATION) && this->dest == station;