diff options
author | rubidium <rubidium@openttd.org> | 2008-06-25 19:33:11 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2008-06-25 19:33:11 +0000 |
commit | ed298d6ff8ed48f44ff39af074ed5bc7ac808d84 (patch) | |
tree | d9b18558dc172160a032a757449e50d02ff79d81 /src | |
parent | 2b071f84ea45790b5e3c6c1a668ddbac87034367 (diff) | |
download | openttd-ed298d6ff8ed48f44ff39af074ed5bc7ac808d84.tar.xz |
(svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed.
Diffstat (limited to 'src')
-rw-r--r-- | src/order_cmd.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |