summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehicle.hpp
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2009-12-19 23:53:15 +0000
committersmatz <smatz@openttd.org>2009-12-19 23:53:15 +0000
commita608fbaf7ffb487444b2e029bb7677af8e172699 (patch)
tree85ac6e321cb114ded6373b6b03f2ac98eb5a9815 /src/ai/api/ai_vehicle.hpp
parent64478eb9600c9402c8e508ba912e973930b13de8 (diff)
downloadopenttd-a608fbaf7ffb487444b2e029bb7677af8e172699.tar.xz
(svn r18557) -Fix: (most of) gcc errors when using lto caused by some structs having different definition in different object files
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp')
-rw-r--r--src/ai/api/ai_vehicle.hpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/ai/api/ai_vehicle.hpp b/src/ai/api/ai_vehicle.hpp
index 3e050b570..4041287a7 100644
--- a/src/ai/api/ai_vehicle.hpp
+++ b/src/ai/api/ai_vehicle.hpp
@@ -80,10 +80,6 @@ public:
VT_WATER, //!< Water type vehicle.
VT_AIR, //!< Air type vehicle.
VT_INVALID = 0xFF, //!< Invalid vehicle type.
-
-#ifdef DEFINE_SCRIPT_FILES
- VEHICLE_INVALID = -1, //!< Invalid VehicleID.
-#endif /* DEFINE_SCRIPT_FILES */
};
/**
@@ -100,6 +96,8 @@ public:
VS_INVALID = 0xFF, //!< An invalid vehicle state.
};
+ static const int VEHICLE_INVALID = -1; //!< Invalid VehicleID.
+
/**
* Checks whether the given vehicle is valid and owned by you.
* @param vehicle_id The vehicle to check.