(svn r21466) -Codechange: make VehicleHasDepotOrders a function of Vehicle.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user