changeset 1037 | 60bb8079eeea |
parent 1035 | 0a170deb6e33 |
child 1058 | 0a1a77da0a03 |
--- a/vehicle.c Sun Jan 16 12:14:52 2005 +0000 +++ b/vehicle.c Sun Jan 16 12:29:52 2005 +0000 @@ -28,6 +28,9 @@ bool VehicleNeedsService(const Vehicle *v) { + if (_patches.no_servicing_if_no_breakdowns && _opt.diff.vehicle_breakdowns == 0) + return false; + return _patches.servint_ispercent ? (v->reliability < _engines[v->engine_type].reliability * (100 - v->service_interval) / 100) : (v->date_of_last_service + v->service_interval < _date);