Merge branch 'service_autorenew' into jgrpp

This commit is contained in:
Jonathan G Rennison
2015-08-11 21:42:30 +01:00

View File

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