Scheduled dispatch: Fixup start dates when changing game date

This commit is contained in:
Jonathan G Rennison
2020-06-20 21:27:19 +01:00
parent d160536315
commit ca79a32890
5 changed files with 15 additions and 0 deletions

View File

@@ -28,6 +28,7 @@
#include "newgrf.h"
#include "error.h"
#include "network/network.h"
#include "order_base.h"
#include "widgets/cheat_widget.h"
@@ -108,6 +109,7 @@ static int32 ClickChangeDateCheat(int32 p1, int32 p2)
Date new_date = ConvertYMDToDate(p1, ymd.month, ymd.day);
LinkGraphSchedule::instance.ShiftDates(new_date - _date);
ShiftOrderDates(new_date - _date);
SetDate(new_date, _date_fract);
EnginesMonthlyLoop();
SetWindowDirty(WC_STATUS_BAR, 0);