mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-01-21 06:34:23 +00:00
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
This commit is contained in:
parent
d7bae069e1
commit
e1ab9c2eea
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user