(svn r10409) -Codechange: replace (Aircraft|RoadVeh|Ship|Train)_Tick with a Tick method in the Vehicle class.
This commit is contained in:
@@ -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)
|
||||
|
Reference in New Issue
Block a user