(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.

This commit is contained in:
rubidium 2008-04-13 11:35:57 +00:00
parent d7bae069e1
commit e1ab9c2eea
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ bool Vehicle::NeedsAutomaticServicing() const
{
if (_patches.gotodepot && VehicleHasDepotOrders(this)) return false;
if (this->current_order.IsType(OT_LOADING)) return false;
if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotActionType() & ODATFB_HALT) return false;
if (this->current_order.IsType(OT_GOTO_DEPOT) && this->current_order.GetDepotOrderType() != ODTFB_SERVICE) return false;
return NeedsServicing();
}