summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-04-07 21:02:27 +0000
committerrubidium <rubidium@openttd.org>2008-04-07 21:02:27 +0000
commitd31dee27175475d0c6a77c4f5da7cfab36eefd63 (patch)
treeb813fb3a3f1b6533f2b90cb745196de9543933f5
parentee02dd7dadb00e51a04b65e38603d77e9cfa1848 (diff)
downloadopenttd-d31dee27175475d0c6a77c4f5da7cfab36eefd63.tar.xz
(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
-rw-r--r--src/order_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_base.h b/src/order_base.h
index 410a7f183..237b468d6 100644
--- a/src/order_base.h
+++ b/src/order_base.h
@@ -178,7 +178,7 @@ public:
/** Set whether we must stop at stations or not. */
inline void SetNonStopType(OrderNonStopFlags non_stop_type) { SB(this->flags, 3, 1, !!non_stop_type); }
/** Set the cause to go to the depot. */
- inline void SetDepotOrderType(OrderDepotTypeFlags depot_order_type) { this->flags = depot_order_type; }
+ inline void SetDepotOrderType(OrderDepotTypeFlags depot_order_type) { this->flags = depot_order_type == ODTFB_SERVICE ? ODTF_MANUAL : depot_order_type; }
/** Set what we are going to do in the depot. */
inline void SetDepotActionType(OrderDepotActionFlags depot_service_type) { this->flags = depot_service_type; }