From 3a65346abcff844148f98f3b2077daf41cd7b53e Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 7 Jul 2020 20:19:08 +0100 Subject: [PATCH] Timetable auto: Skip congestion check for depot service orders --- src/timetable_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/timetable_cmd.cpp b/src/timetable_cmd.cpp index 9f69e90c64..952155a5e4 100644 --- a/src/timetable_cmd.cpp +++ b/src/timetable_cmd.cpp @@ -917,7 +917,7 @@ void UpdateVehicleTimetable(Vehicle *v, bool travelling) int32 new_time; if (travelling) { new_time = time_taken; - if (new_time > (int32)timetabled * 4) { + if (new_time > (int32)timetabled * 4 && !(real_timetable_order->IsType(OT_GOTO_DEPOT) && (real_timetable_order->GetDepotOrderType() & ODTFB_SERVICE))) { /* Possible jam, clear time and restart timetable for all vehicles. * Otherwise we risk trains blocking 1-lane stations for long times. */ ChangeTimetable(v, v->cur_timetable_order_index, 0, travel_field ? MTF_TRAVEL_TIME : MTF_WAIT_TIME, true);