(svn r14449) -Fix [FS#2338]: service at nearest depot acted like go to nearest depot.
authorrubidium
Wed, 08 Oct 2008 11:03:43 +0000
changeset 10226 8a3f10afb85e
parent 10225 eb61dd8101c1
child 10227 2119781291ba
(svn r14449) -Fix [FS#2338]: service at nearest depot acted like go to nearest depot.
src/order_cmd.cpp
--- a/src/order_cmd.cpp	Tue Oct 07 20:57:41 2008 +0000
+++ b/src/order_cmd.cpp	Wed Oct 08 11:03:43 2008 +0000
@@ -1616,7 +1616,7 @@
 
 				if (v->FindClosestDepot(&location, &destination, &reverse)) {
 					v->dest_tile = location;
-					v->current_order.MakeGoToDepot(destination, ODTFB_PART_OF_ORDERS);
+					v->current_order.MakeGoToDepot(destination, v->current_order.GetDepotOrderType());
 
 					/* If there is no depot in front, reverse automatically (trains only) */
 					if (v->type == VEH_TRAIN && reverse) DoCommand(v->tile, v->index, 0, DC_EXEC, CMD_REVERSE_TRAIN_DIRECTION);