diff options
author | yexo <yexo@openttd.org> | 2009-04-25 22:57:15 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-04-25 22:57:15 +0000 |
commit | 486e5b4bfeb4916f0a285fb9749ba031fa16c278 (patch) | |
tree | a0ce3752e54913433aff01ff7f74d0bf417b5548 /src/ai/api/ai_waypoint.hpp | |
parent | d8bc98d5de40fe7549aa5815d71ddd00bf4ce7c5 (diff) | |
download | openttd-486e5b4bfeb4916f0a285fb9749ba031fa16c278.tar.xz |
(svn r16150) -Fix [NoAI]: Change WAYPOINT_INVALID to 0xFFFF from -1 as that's the value the AIs got (due to casting).
Clarify some api documentation.
Diffstat (limited to 'src/ai/api/ai_waypoint.hpp')
-rw-r--r-- | src/ai/api/ai_waypoint.hpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ai/api/ai_waypoint.hpp b/src/ai/api/ai_waypoint.hpp index 69eacb10e..9e1bec911 100644 --- a/src/ai/api/ai_waypoint.hpp +++ b/src/ai/api/ai_waypoint.hpp @@ -16,7 +16,7 @@ public: static const char *GetClassName() { return "AIWaypoint"; } enum SpecialWaypointIDs { - WAYPOINT_INVALID = -1, //!< An invalid WaypointID. + WAYPOINT_INVALID = 0xFFFF, //!< An invalid WaypointID. }; /** |