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

@@ -1866,7 +1866,7 @@ struct CompanyInfrastructureWindow : Window
}
/* Get the date introduced railtypes as well. */
this->railtypes = AddDateIntroducedRailTypes(this->railtypes, MAX_DAY);
this->railtypes = AddDateIntroducedRailTypes(this->railtypes, MAX_DATE);
/* Find the used roadtypes. */
for (const Engine *e : Engine::IterateType(VEH_ROAD)) {
@@ -1876,7 +1876,7 @@ struct CompanyInfrastructureWindow : Window
}
/* Get the date introduced roadtypes as well. */
this->roadtypes = AddDateIntroducedRoadTypes(this->roadtypes, MAX_DAY);
this->roadtypes = AddDateIntroducedRoadTypes(this->roadtypes, MAX_DATE);
this->roadtypes &= ~_roadtypes_hidden_mask;
}