summaryrefslogtreecommitdiff
path: root/order.h
diff options
context:
space:
mode:
authorcelestar <celestar@openttd.org>2005-01-17 21:54:45 +0000
committercelestar <celestar@openttd.org>2005-01-17 21:54:45 +0000
commite0471187d0645c9e1b3034944ec678e72305e477 (patch)
tree755e303bd69eb374f02087bee0e415a3f337a9c6 /order.h
parent9fadf6cf848e8b8248c945066be2fcd4efe2e349 (diff)
downloadopenttd-e0471187d0645c9e1b3034944ec678e72305e477.tar.xz
(svn r1554) -Fix: [ 1103187 ] Order Check messages are now validated before
displayed, so that there are no stray error messages any more. -Feature/Fix: Order Checking is only execute for ONE vehicle in an order-share system
Diffstat (limited to 'order.h')
-rw-r--r--order.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/order.h b/order.h
index 07fd95e4a..97f823a54 100644
--- a/order.h
+++ b/order.h
@@ -33,6 +33,12 @@ enum {
CO_UNSHARE = 2
};
+/* Modes for the order checker */
+enum {
+ OC_INIT = 0, //the order checker can initialize a news message
+ OC_VALIDATE = 1, //the order checker validates a news message
+};
+
/* If you change this, keep in mind that it is saved on 3 places:
- Load_ORDR, all the global orders
- Vehicle -> current_order
@@ -112,7 +118,7 @@ void RestoreVehicleOrders(Vehicle *v, BackuppedOrders *order);
void DeleteDestinationFromVehicleOrder(Order dest);
void InvalidateVehicleOrder(const Vehicle *v);
bool VehicleHasDepotOrders(const Vehicle *v);
-bool CheckOrders(const Vehicle *v);
+bool CheckOrders(uint data_a, uint data_b);
void DeleteVehicleOrders(Vehicle *v);
bool IsOrderListShared(const Vehicle *v);
void AssignOrder(Order *order, Order data);