summaryrefslogtreecommitdiff
path: root/order.h
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-09-16 16:03:18 +0000
committerDarkvater <darkvater@openttd.org>2005-09-16 16:03:18 +0000
commitc930f8f8c0c60e192e50db9a032e55ff671db131 (patch)
treef3163c8df242274577a2a6eb8c73a89224ad0e1a /order.h
parent4797310f91579b0cbf6cbce8a3ab85654d4d3f22 (diff)
downloadopenttd-c930f8f8c0c60e192e50db9a032e55ff671db131.tar.xz
(svn r2959) - Fix: [ 1266036 ] Fix [ 1236317 ] Vehicles with and TRANSFER order don't have that order restored (i_dachev). Also disallow non-train type vehicles to have non-stop orders.
Diffstat (limited to 'order.h')
-rw-r--r--order.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/order.h b/order.h
index e2000231d..08bbc7529 100644
--- a/order.h
+++ b/order.h
@@ -90,10 +90,12 @@ typedef struct Order {
uint16 index; //! Index of the order, is not saved or anything, just for reference
} Order;
+#define MAX_BACKUP_ORDER_COUNT 40
+
typedef struct {
VehicleID clone;
OrderID orderindex;
- Order order[41];
+ Order order[MAX_BACKUP_ORDER_COUNT + 1];
uint16 service_interval;
char name[32];
} BackuppedOrders;