summaryrefslogtreecommitdiff
path: root/src/ai/api
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-08-19 20:58:30 +0000
committerrubidium <rubidium@openttd.org>2010-08-19 20:58:30 +0000
commit1fa98e169529b070c19a6bc0cff311ebc993b468 (patch)
tree6cd7011fc2faece6a110096a49f95ad5290c6e66 /src/ai/api
parentcc658392ebef76ca21efc7c3ab1aaaa93c50448e (diff)
downloadopenttd-1fa98e169529b070c19a6bc0cff311ebc993b468.tar.xz
(svn r20574) -Codechange: a little over 1 million vehicles should be enough for the forseeable future
Diffstat (limited to 'src/ai/api')
-rw-r--r--src/ai/api/ai_types.hpp2
-rw-r--r--src/ai/api/ai_vehicle.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/ai/api/ai_types.hpp b/src/ai/api/ai_types.hpp
index 2eb629aba..7308a0452 100644
--- a/src/ai/api/ai_types.hpp
+++ b/src/ai/api/ai_types.hpp
@@ -97,7 +97,7 @@ typedef uint16 StringID; ///< The ID of a string.
typedef uint16 SubsidyID; ///< The ID of a subsidy.
typedef uint32 TileIndex; ///< The ID of a tile (just named differently).
typedef uint16 TownID; ///< The ID of a town.
-typedef uint16 VehicleID; ///< The ID of a vehicle.
+typedef uint32 VehicleID; ///< The ID of a vehicle.
/* Types we defined ourself, as the OpenTTD core doesn't have them (yet) */
typedef uint AIErrorType; ///< The types of errors inside the NoAI framework.
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp
index 126503e21..083e9da1c 100644
--- a/src/ai/api/ai_vehicle.hpp
+++ b/src/ai/api/ai_vehicle.hpp
@@ -97,7 +97,7 @@ public:
VS_INVALID = 0xFF, ///< An invalid vehicle state.
};
- static const VehicleID VEHICLE_INVALID = 0xFFFF; ///< Invalid VehicleID.
+ static const VehicleID VEHICLE_INVALID = 0xFFFFF; ///< Invalid VehicleID.
/**
* Checks whether the given vehicle is valid and owned by you.