From dd2805da8ce968f85dd78463c66d0b788c8e7c8d Mon Sep 17 00:00:00 2001 From: Jonathan G Rennison Date: Tue, 11 Aug 2015 20:57:32 +0100 Subject: [PATCH] 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. --- src/vehicle.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index 46f98fe63b..792912911e 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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. */