summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-13 11:35:57 +0000
committerrubidium <rubidium@openttd.org>2008-04-13 11:35:57 +0000
commite1ab9c2eea2118a2e99fb556400098769c63aebb (patch)
treec984849ac7e9820a8f347c824353124555df3c69
parentd7bae069e124a3b110f065aa143ef413f04f015a (diff)
downloadopenttd-e1ab9c2eea2118a2e99fb556400098769c63aebb.tar.xz
(svn r12684) -Fix [FS#1891]: manually given service at depot order is not forgotten anymore when autoservice 'interferes'.
-rw-r--r--src/vehicle.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vehicle.cpp b/src/vehicle.cpp
index b1cd16763..9d092d673 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();
}