Servicing: send vehicles which need auto-renewing due to age for servicing,

even if breakdowns are off and no servicing if no breakdowns is on.
This commit is contained in:
Jonathan G Rennison
2015-08-11 20:57:32 +01:00
parent f4cd0198f4
commit dd2805da8c

View File

@@ -138,6 +138,11 @@ bool Vehicle::NeedsServicing() const
return true;
}
/* Is vehicle old and renewing is enabled */
if (this->NeedsAutorenewing(c, true)) {
return true;
}
/* Test whether there is some pending autoreplace.
* Note: We do this after the service-interval test.
* There are a lot more reasons for autoreplace to fail than we can test here reasonably. */