(svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts.
This commit is contained in:
@@ -3778,11 +3778,12 @@ static void CheckIfTrainNeedsService(Train *v)
|
||||
|
||||
void Train::OnNewDay()
|
||||
{
|
||||
AgeVehicle(this);
|
||||
|
||||
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);
|
||||
|
||||
if (this->IsFrontEngine()) {
|
||||
CheckVehicleBreakdown(this);
|
||||
AgeVehicle(this);
|
||||
|
||||
CheckIfTrainNeedsService(this);
|
||||
|
||||
@@ -3806,9 +3807,6 @@ void Train::OnNewDay()
|
||||
SetWindowDirty(WC_VEHICLE_DETAILS, this->index);
|
||||
SetWindowClassesDirty(WC_TRAINS_LIST);
|
||||
}
|
||||
} else if (this->IsEngine()) {
|
||||
/* Also age engines that aren't front engines */
|
||||
AgeVehicle(this);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user