(svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed.
authorrubidium
Wed, 25 Jun 2008 19:33:11 +0000
changeset 11076 a7126859e799
parent 11075 1acf0ed0da9d
child 11077 eed344c0481e
(svn r13633) -Fix: restoring 'service at depot X' orders from the order backup failed.
src/order_cmd.cpp
--- a/src/order_cmd.cpp	Wed Jun 25 18:46:05 2008 +0000
+++ b/src/order_cmd.cpp	Wed Jun 25 19:33:11 2008 +0000
@@ -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;
 		}