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:
@@ -138,6 +138,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. */
|
||||||
|
Reference in New Issue
Block a user