Codechange: Use proper date types in various places (#11177)

This commit is contained in:
Tyler Trahan
2023-08-11 09:32:42 -04:00
committed by GitHub
parent c9c9cfa4fd
commit c7b51a8c3a
7 changed files with 12 additions and 11 deletions

View File

@@ -6512,7 +6512,7 @@ bool GetGlobalVariable(byte param, uint32_t *value, const GRFFile *grffile)
{
switch (param) {
case 0x00: // current date
*value = std::max(TimerGameCalendar::date - DAYS_TILL_ORIGINAL_BASE_YEAR, 0);
*value = std::max(TimerGameCalendar::date - DAYS_TILL_ORIGINAL_BASE_YEAR, TimerGameCalendar::Date(0));
return true;
case 0x01: // current year