diff options
Diffstat (limited to 'order.h')
-rw-r--r-- | order.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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); |