diff options
author | rubidium <rubidium@openttd.org> | 2010-12-11 13:48:30 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-12-11 13:48:30 +0000 |
commit | 23369337c1af635f479c1d1541601742f6285dd2 (patch) | |
tree | db1efa572b852449fcc8001061278338d0b199fc /src/vehicle.cpp | |
parent | fc7082590551a36ca7606f61f0ffced27b3194ac (diff) | |
download | openttd-23369337c1af635f479c1d1541601742f6285dd2.tar.xz |
(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
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 ff6039c9a..b7bae6cb0 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -158,8 +158,8 @@ bool Vehicle::NeedsServicing() const bool Vehicle::NeedsAutomaticServicing() const { - if (_settings_game.order.gotodepot && VehicleHasDepotOrders(this)) return false; - if (this->current_order.IsType(OT_LOADING)) return false; + if (_settings_game.order.gotodepot && this->HasDepotOrder()) return false; + if (this->current_order.IsType(OT_LOADING)) return false; if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotOrderType() != ODTFB_SERVICE) return false; return NeedsServicing(); } |