(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
authorrubidium
Mon, 07 Apr 2008 21:02:27 +0000
changeset 10084 95e428ae219c
parent 10083 9fb63cf5cc90
child 10085 3f6bb14b43c4
(svn r12620) -Fix: automatic servicing of vehicles made them stop in the depot.
src/order_base.h
--- a/src/order_base.h	Mon Apr 07 20:28:58 2008 +0000
+++ b/src/order_base.h	Mon Apr 07 21:02:27 2008 +0000
@@ -178,7 +178,7 @@
 	/** 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; }