(svn r18557) -Fix: (most of) gcc errors when using lto caused by some structs having different definition in different object files

This commit is contained in:
smatz
2009-12-19 23:53:15 +00:00
parent 64478eb960
commit a608fbaf7f
9 changed files with 12 additions and 19 deletions

View File

@@ -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.