From cde8a44a114698b854f516634d5445ebefca045d Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 10 Aug 2010 16:45:32 +0000 Subject: (svn r20441) -Fix [FS#4024]: adding "goto nearest depot and stop" orders in one go was denied. This caused both AI adding those orders and backed up order restoration to fail. --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index d91f5d375..2003ce255 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -525,7 +525,7 @@ CommandCost CmdInsertOrder(TileIndex tile, DoCommandFlag flags, uint32 p1, uint3 } case OT_GOTO_DEPOT: { - if (new_order.GetDepotActionType() != ODATFB_NEAREST_DEPOT) { + if ((new_order.GetDepotActionType() & ODATFB_NEAREST_DEPOT) == 0) { if (v->type == VEH_AIRCRAFT) { const Station *st = Station::GetIfValid(new_order.GetDestination()); -- cgit v1.2.3-70-g09d2