1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-01-17 09:22:42 +01:00

Change: Show company finances column if it has any values in it. (#13112)

This solves finances not being show if the company inauguration date is in the future.

Current period is now always shown in the same position instead of moving for the first 2 years.
This commit is contained in:
Peter Nelson
2024-11-24 11:59:30 +00:00
committed by GitHub
parent 0c04966dc3
commit 0446123194
3 changed files with 29 additions and 6 deletions

View File

@@ -129,6 +129,7 @@ static int32_t ClickChangeDateCheat(int32_t new_value, int32_t)
InvalidateWindowClassesData(WC_BUS_STATION, 0);
InvalidateWindowClassesData(WC_TRUCK_STATION, 0);
InvalidateWindowClassesData(WC_BUILD_OBJECT, 0);
InvalidateWindowClassesData(WC_FINANCES, 0);
ResetSignalVariant();
return TimerGameCalendar::year.base();
}