(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
This commit is contained in:
8
order.h
8
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);
|
||||
|
||||
Reference in New Issue
Block a user