(svn r22816) -Feature(ette): [NewGRF] Also age wagons and articulated parts.

This commit is contained in:
frosch
2011-08-22 21:33:58 +00:00
parent 3957f428b1
commit 28117b3eb0
3 changed files with 6 additions and 5 deletions

View File

@@ -1591,12 +1591,13 @@ static void CheckIfRoadVehNeedsService(RoadVehicle *v)
void RoadVehicle::OnNewDay()
{
AgeVehicle(this);
if (!this->IsFrontEngine()) return;
if ((++this->day_counter & 7) == 0) DecreaseVehicleValue(this);
if (this->blocked_ctr == 0) CheckVehicleBreakdown(this);
AgeVehicle(this);
CheckIfRoadVehNeedsService(this);
CheckOrders(this);