From 634aba16a746d300e0b65b93617ae49c6739d5f3 Mon Sep 17 00:00:00 2001 From: rubidium Date: Sun, 9 Sep 2007 17:42:59 +0000 Subject: (svn r11072) -Fix [FS#1045]: when a vehicle had a service order, the goto-depot button did not make it possible to stop the vehicle at that depot. --- src/train_cmd.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'src/train_cmd.cpp') diff --git a/src/train_cmd.cpp b/src/train_cmd.cpp index f850f7c42..a320628a9 100644 --- a/src/train_cmd.cpp +++ b/src/train_cmd.cpp @@ -1893,6 +1893,7 @@ CommandCost CmdSendTrainToDepot(TileIndex tile, uint32 flags, uint32 p1, uint32 * Now we change the setting to apply the new one and let the vehicle head for the same depot. * Note: the if is (true for requesting service == true for ordered to stop in depot) */ if (flags & DC_EXEC) { + CLRBIT(v->current_order.flags, OFB_PART_OF_ORDERS); TOGGLEBIT(v->current_order.flags, OFB_HALT_IN_DEPOT); InvalidateWindowWidget(WC_VEHICLE_VIEW, v->index, STATUS_BAR); } -- cgit v1.2.3-70-g09d2