Codechange: do not implicitly convert during assignment to StrongType

This commit is contained in:
Rubidium
2025-01-01 18:50:57 +01:00
committed by rubidium42
parent 448d6ede4a
commit c0df898ac5
25 changed files with 57 additions and 58 deletions

View File

@@ -190,7 +190,7 @@ void UpdateOldAircraft()
a->state = FLYING;
AircraftNextAirportPos_and_Order(a); // move it to the entry point of the airport
GetNewVehiclePosResult gp = GetNewVehiclePos(a);
a->tile = 0; // aircraft in air is tile=0
a->tile = TileIndex{}; // aircraft in air is tile=0
/* correct speed of helicopter-rotors */
if (a->subtype == AIR_HELICOPTER) a->Next()->Next()->cur_speed = 32;
@@ -403,7 +403,7 @@ void AfterLoadVehiclesPhase1(bool part_of_load)
if (IsSavegameVersionBefore(SLV_VEHICLE_ECONOMY_AGE)) {
/* Set vehicle economy age based on calendar age. */
for (Vehicle *v : Vehicle::Iterate()) {
v->economy_age = v->age.base();
v->economy_age = TimerGameEconomy::Date{v->age.base()};
}
}
}