Mercurial > hg > openttd
changeset 9593:96017719e61f draft
(svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed.
author | rubidium <rubidium@openttd.org> |
---|---|
date | Wed, 25 Jun 2008 19:33:11 +0000 |
parents | b8910fe673fc |
children | 3686a9dc67d5 |
files | src/order_cmd.cpp |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/order_cmd.cpp +++ b/src/order_cmd.cpp @@ -419,7 +419,7 @@ } 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; }