diff options
author | smatz <smatz@openttd.org> | 2009-12-19 23:53:15 +0000 |
---|---|---|
committer | smatz <smatz@openttd.org> | 2009-12-19 23:53:15 +0000 |
commit | a608fbaf7ffb487444b2e029bb7677af8e172699 (patch) | |
tree | 85ac6e321cb114ded6373b6b03f2ac98eb5a9815 /src/ai/api/ai_vehicle.hpp.sq | |
parent | 64478eb9600c9402c8e508ba912e973930b13de8 (diff) | |
download | openttd-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.sq')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp.sq | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/ai/api/ai_vehicle.hpp.sq b/src/ai/api/ai_vehicle.hpp.sq index edd28b019..0e35a3afd 100644 --- a/src/ai/api/ai_vehicle.hpp.sq +++ b/src/ai/api/ai_vehicle.hpp.sq @@ -52,7 +52,6 @@ void SQAIVehicle_Register(Squirrel *engine) SQAIVehicle.DefSQConst(engine, AIVehicle::VT_WATER, "VT_WATER"); SQAIVehicle.DefSQConst(engine, AIVehicle::VT_AIR, "VT_AIR"); SQAIVehicle.DefSQConst(engine, AIVehicle::VT_INVALID, "VT_INVALID"); - SQAIVehicle.DefSQConst(engine, AIVehicle::VEHICLE_INVALID, "VEHICLE_INVALID"); SQAIVehicle.DefSQConst(engine, AIVehicle::VS_RUNNING, "VS_RUNNING"); SQAIVehicle.DefSQConst(engine, AIVehicle::VS_STOPPED, "VS_STOPPED"); SQAIVehicle.DefSQConst(engine, AIVehicle::VS_IN_DEPOT, "VS_IN_DEPOT"); @@ -61,6 +60,8 @@ void SQAIVehicle_Register(Squirrel *engine) SQAIVehicle.DefSQConst(engine, AIVehicle::VS_CRASHED, "VS_CRASHED"); SQAIVehicle.DefSQConst(engine, AIVehicle::VS_INVALID, "VS_INVALID"); + SQAIVehicle.DefSQConst(engine, AIVehicle::VEHICLE_INVALID, "VEHICLE_INVALID"); + AIError::RegisterErrorMap(STR_ERROR_TOO_MANY_VEHICLES_IN_GAME, AIVehicle::ERR_VEHICLE_TOO_MANY); AIError::RegisterErrorMap(STR_ERROR_AIRCRAFT_NOT_AVAILABLE, AIVehicle::ERR_VEHICLE_NOT_AVAILABLE); AIError::RegisterErrorMap(STR_ERROR_ROAD_VEHICLE_NOT_AVAILABLE, AIVehicle::ERR_VEHICLE_NOT_AVAILABLE); |