summaryrefslogtreecommitdiff
path: root/src/order_type.h
diff options
context:
space:
mode:
authorfonsinchen <fonsinchen@openttd.org>2013-08-20 20:05:31 +0000
committerfonsinchen <fonsinchen@openttd.org>2013-08-20 20:05:31 +0000
commitd8365c63fd56352f07418bd079a971c043fa13b8 (patch)
tree7d16ac4d5c62ec3aacdc3c61459922fcdfed4a82 /src/order_type.h
parentae629c028aba5f757ba1f7213b12985810755851 (diff)
downloadopenttd-d8365c63fd56352f07418bd079a971c043fa13b8.tar.xz
(svn r25735) -Feature: allow implicit orders even if no explicit ones are given.
Diffstat (limited to 'src/order_type.h')
-rw-r--r--src/order_type.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/order_type.h b/src/order_type.h
index 947f00da8..d3a771ce8 100644
--- a/src/order_type.h
+++ b/src/order_type.h
@@ -27,6 +27,12 @@ static const VehicleOrderID MAX_VEH_ORDER_ID = INVALID_VEH_ORDER_ID - 1;
/** Invalid order (sentinel) */
static const OrderID INVALID_ORDER = 0xFFFF;
+/**
+ * Maximum number of orders in implicit-only lists before we start searching
+ * harder for duplicates.
+ */
+static const uint IMPLICIT_ORDER_ONLY_CAP = 32;
+
/** Order types */
enum OrderType {
OT_BEGIN = 0,