summaryrefslogtreecommitdiff
path: root/src/order_type.h
diff options
context:
space:
mode:
authorPeterN <peter@fuzzle.org>2019-02-18 07:37:25 +0000
committerGitHub <noreply@github.com>2019-02-18 07:37:25 +0000
commit84961034e481859d7266545d4ce0deb6b3ea2911 (patch)
treea12a707b55d81b7746029e56112cfb205b3e0002 /src/order_type.h
parentef7e47a53afbcf8086ef8211f32ac4277c5309b0 (diff)
downloadopenttd-84961034e481859d7266545d4ce0deb6b3ea2911.tar.xz
Change: Increase maximum number of orders from 64000 to ~16.7m. (#7220)
Diffstat (limited to 'src/order_type.h')
-rw-r--r--src/order_type.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/order_type.h b/src/order_type.h
index ac66bfa38..b1e0fad53 100644
--- a/src/order_type.h
+++ b/src/order_type.h
@@ -15,7 +15,7 @@
#include "core/enum_type.hpp"
typedef byte VehicleOrderID; ///< The index of an order within its current vehicle (not pool related)
-typedef uint16 OrderID;
+typedef uint32 OrderID;
typedef uint16 OrderListID;
typedef uint16 DestinationID;
@@ -25,7 +25,7 @@ static const VehicleOrderID INVALID_VEH_ORDER_ID = 0xFF;
static const VehicleOrderID MAX_VEH_ORDER_ID = INVALID_VEH_ORDER_ID - 1;
/** Invalid order (sentinel) */
-static const OrderID INVALID_ORDER = 0xFFFF;
+static const OrderID INVALID_ORDER = 0xFFFFFF;
/**
* Maximum number of orders in implicit-only lists before we start searching