From 22b13ffc262a6dffd634accd8e90a54799f426f9 Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Sat, 20 Jun 2020 21:33:31 +0100 Subject: [PATCH] Mark order/timetable windows dirty when changing game date --- src/order_cmd.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index e895ca04b7..bc40d0cca5 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -3012,4 +3012,9 @@ void ShiftOrderDates(int interval) orderlist->SetScheduledDispatchStartDate(orderlist->GetScheduledDispatchStartDatePart() + interval, orderlist->GetScheduledDispatchStartDateFractPart()); } } + + SetWindowClassesDirty(WC_VEHICLE_ORDERS); + SetWindowClassesDirty(WC_VEHICLE_TIMETABLE); + SetWindowClassesDirty(WC_SCHDISPATCH_SLOTS); + InvalidateWindowClassesData(WC_DEPARTURES_BOARD, 0); }