mirror of
https://github.com/JGRennison/OpenTTD-patches.git
synced 2024-11-17 21:25:40 +00:00
(svn r14449) -Fix [FS#2338]: service at nearest depot acted like go to nearest depot.
This commit is contained in:
parent
b2852f88fb
commit
d13dff31c4
@ -1616,7 +1616,7 @@ bool UpdateOrderDest(Vehicle *v, const Order *order, int conditional_depth)
|
|||||||
|
|
||||||
if (v->FindClosestDepot(&location, &destination, &reverse)) {
|
if (v->FindClosestDepot(&location, &destination, &reverse)) {
|
||||||
v->dest_tile = location;
|
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 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);
|
if (v->type == VEH_TRAIN && reverse) DoCommand(v->tile, v->index, 0, DC_EXEC, CMD_REVERSE_TRAIN_DIRECTION);
|
||||||
|
Loading…
Reference in New Issue
Block a user