Codechange: Don't use macros for DAYS_TILL and friends (#10746)

This commit is contained in:
Tyler Trahan
2023-05-07 05:25:24 -04:00
committed by GitHub
parent 8bf62dac81
commit 98d809c33b
11 changed files with 26 additions and 36 deletions

View File

@@ -131,7 +131,7 @@ static const uint16 _accum_days_for_month[] = {
/* Account for the missing of the 29th of February in non-leap years */
if (!TimerGameCalendar::IsLeapYear(year) && days >= ACCUM_MAR) days--;
return DAYS_TILL(year) + days;
return DateAtStartOfYear(year) + days;
}
/**