(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class.

This commit is contained in:
rubidium
2007-07-01 19:24:54 +00:00
parent c0e341ee05
commit ec137f60ed
11 changed files with 40 additions and 46 deletions

View File

@@ -1829,11 +1829,11 @@ static void AgeRoadVehCargo(Vehicle *v)
v->cargo.AgeCargo();
}
void RoadVeh_Tick(Vehicle *v)
void RoadVehicle::Tick()
{
AgeRoadVehCargo(v);
AgeRoadVehCargo(this);
if (IsRoadVehFront(v)) RoadVehController(v);
if (IsRoadVehFront(this)) RoadVehController(this);
}
static void CheckIfRoadVehNeedsService(Vehicle *v)