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

@@ -2293,7 +2293,7 @@ DEF_CONSOLE_CMD(ConNewGRFProfile)
GetString(datestrbuf, STR_JUST_DATE_ISO, lastof(datestrbuf));
IConsolePrint(CC_DEBUG, "Profiling will automatically stop on game date {}.", datestrbuf);
} else {
_newgrf_profile_end_date = MAX_DAY;
_newgrf_profile_end_date = MAX_DATE;
}
} else if (_newgrf_profilers.empty()) {
IConsolePrint(CC_ERROR, "No GRFs selected for profiling, did not start.");
@@ -2314,7 +2314,7 @@ DEF_CONSOLE_CMD(ConNewGRFProfile)
for (NewGRFProfiler &pr : _newgrf_profilers) {
pr.Abort();
}
_newgrf_profile_end_date = MAX_DAY;
_newgrf_profile_end_date = MAX_DATE;
return true;
}