From e1ab9c2eea2118a2e99fb556400098769c63aebb Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 13 Apr 2008 11:35:57 +0000 Subject: [PATCH] (svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'. --- src/vehicle.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vehicle.cpp b/src/vehicle.cpp index b1cd167630..9d092d673e 100644 --- a/src/vehicle.cpp +++ b/src/vehicle.cpp @@ -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(); }