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

@@ -1370,7 +1370,7 @@ bool Vehicle::HandleBreakdown()
*/
void AgeVehicle(Vehicle *v)
{
if (v->age < MAX_DAY) {
if (v->age < MAX_DATE) {
v->age++;
if (v->IsPrimaryVehicle() && v->age == VEHICLE_PROFIT_MIN_AGE + 1) GroupStatistics::VehicleReachedMinAge(v);
}