diff options
author | rubidium <rubidium@openttd.org> | 2013-02-14 17:04:01 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2013-02-14 17:04:01 +0000 |
commit | c77cd1f409698a5c3c0dc89f2cd1930b20b90554 (patch) | |
tree | d73eefa6aae84ccaec5d3657a03c692e4f5b2cac /src/vehicle.cpp | |
parent | 328ed1cf94a5a18fad75ae7057202b5c05138765 (diff) | |
download | openttd-c77cd1f409698a5c3c0dc89f2cd1930b20b90554.tar.xz |
(svn r24994) -Codechange: Replace access to service_interval with accessors (peter1138)
Diffstat (limited to 'src/vehicle.cpp')
-rw-r--r-- | src/vehicle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp index c09650410..6c542b91e 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -112,8 +112,8 @@ bool Vehicle::NeedsServicing() const /* Are we ready for the next service cycle? */ const Company *c = Company::Get(this->owner); if (c->settings.vehicle.servint_ispercent ? - (this->reliability >= this->GetEngine()->reliability * (100 - this->service_interval) / 100) : - (this->date_of_last_service + this->service_interval >= _date)) { + (this->reliability >= this->GetEngine()->reliability * (100 - this->GetServiceInterval()) / 100) : + (this->date_of_last_service + this->GetServiceInterval() >= _date)) { return false; } |