From ed298d6ff8ed48f44ff39af074ed5bc7ac808d84 Mon Sep 17 00:00:00 2001 From: rubidium Date: Wed, 25 Jun 2008 19:33:11 +0000 Subject: (svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed. --- src/order_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/order_cmd.cpp') diff --git a/src/order_cmd.cpp b/src/order_cmd.cpp index 627fdcb76..4b5962411 100644 --- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -419,7 +419,7 @@ CommandCost CmdInsertOrder(TileIndex tile, uint32 flags, uint32 p1, uint32 p2) } if (new_order.GetNonStopType() != ONSF_STOP_EVERYWHERE && v->type != VEH_TRAIN && v->type != VEH_ROAD) return CMD_ERROR; - if (new_order.GetDepotOrderType() & ~ODTFB_PART_OF_ORDERS) return CMD_ERROR; + if (new_order.GetDepotOrderType() & ~(ODTFB_PART_OF_ORDERS | ((new_order.GetDepotOrderType() & ODTFB_PART_OF_ORDERS) != 0 ? ODTFB_SERVICE : 0))) return CMD_ERROR; if (new_order.GetDepotActionType() & ~ODATFB_NEAREST_DEPOT) return CMD_ERROR; break; } -- cgit v1.2.3-54-g00ecf