1
0
Fork 0

Change: When using wallclock timekeeping, date cheat only changes calendar year

pull/11341/head
Tyler Trahan 2023-12-12 10:18:24 -05:00
parent a9f8d89448
commit afd9074ad6
1 changed files with 3 additions and 1 deletions

View File

@ -116,7 +116,9 @@ static int32_t ClickChangeDateCheat(int32_t new_value, int32_t)
/* Now it's safe to actually change the date. */ /* Now it's safe to actually change the date. */
TimerGameCalendar::SetDate(new_calendar_date, TimerGameCalendar::date_fract); TimerGameCalendar::SetDate(new_calendar_date, TimerGameCalendar::date_fract);
TimerGameEconomy::SetDate(new_economy_date, TimerGameEconomy::date_fract);
/* If not using wallclock units, we keep economy date in sync with calendar date and must change it also. */
if (!TimerGameEconomy::UsingWallclockUnits()) TimerGameEconomy::SetDate(new_economy_date, TimerGameEconomy::date_fract);
CalendarEnginesMonthlyLoop(); CalendarEnginesMonthlyLoop();
SetWindowDirty(WC_STATUS_BAR, 0); SetWindowDirty(WC_STATUS_BAR, 0);