diff options
author | rubidium <rubidium@openttd.org> | 2007-09-09 17:42:59 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-09-09 17:42:59 +0000 |
commit | 634aba16a746d300e0b65b93617ae49c6739d5f3 (patch) | |
tree | 83d96706871a483f8690cebff3fd9febc2f2b901 /src/aircraft_cmd.cpp | |
parent | a93a1a8b62050e8a4837e91084cad4298720a8d1 (diff) | |
download | openttd-634aba16a746d300e0b65b93617ae49c6739d5f3.tar.xz |
(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.
Diffstat (limited to 'src/aircraft_cmd.cpp')
-rw-r--r-- | src/aircraft_cmd.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/aircraft_cmd.cpp b/src/aircraft_cmd.cpp index db22fbd0a..97a91f371 100644 --- a/src/aircraft_cmd.cpp +++ b/src/aircraft_cmd.cpp @@ -568,6 +568,7 @@ CommandCost CmdSendAircraftToHangar(TileIndex tile, uint32 flags, uint32 p1, uin * Now we change the setting to apply the new one and let the vehicle head for the same hangar. * Note: the if is (true for requesting service == true for ordered to stop in hangar) */ 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); } |