summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-10-08 11:03:43 +0000
committerrubidium <rubidium@openttd.org>2008-10-08 11:03:43 +0000
commitd13dff31c41089aef6230fad44ec0ce9d21f4c15 (patch)
tree2f731ddfdf45d1bfc8d0b8ce5b945383d006ab16 /src
parentb2852f88fbce41c3d854968a2fd6079bc35a9930 (diff)
downloadopenttd-d13dff31c41089aef6230fad44ec0ce9d21f4c15.tar.xz
(svn r14449) -Fix [FS#2338]: service at nearest depot acted like go to nearest depot.
Diffstat (limited to 'src')
-rw-r--r--src/order_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp
index 108df6830..cca67c8fd 100644
--- a/src/order_cmd.cpp
+++ b/src/order_cmd.cpp
@@ -1616,7 +1616,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth)
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);