diff options
author | yexo <yexo@openttd.org> | 2009-07-10 22:30:38 +0000 |
---|---|---|
committer | yexo <yexo@openttd.org> | 2009-07-10 22:30:38 +0000 |
commit | b58001f6956c9fb825d5b00b125349b221a71cd8 (patch) | |
tree | 28ea35f156838ccf6047d0f75065b0a728e5abd3 /src/ai/api/ai_vehicle.hpp.sq | |
parent | 4843b3c45d7dac3dc3bde82b8b4b0cfd3c5924e1 (diff) | |
download | openttd-b58001f6956c9fb825d5b00b125349b221a71cd8.tar.xz |
(svn r16790) -Add [NoAI]: AIVehicle::GetReliability to get the current reliability of vehicles
Diffstat (limited to 'src/ai/api/ai_vehicle.hpp.sq')
-rw-r--r-- | src/ai/api/ai_vehicle.hpp.sq | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_vehicle.hpp.sq b/src/ai/api/ai_vehicle.hpp.sq index 3f01d25d8..7d56cb7a4 100644 --- a/src/ai/api/ai_vehicle.hpp.sq +++ b/src/ai/api/ai_vehicle.hpp.sq @@ -142,6 +142,7 @@ void SQAIVehicle_Register(Squirrel *engine) { SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetGroupID, "GetGroupID", 2, ".i"); SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::IsArticulated, "IsArticulated", 2, ".i"); SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::HasSharedOrders, "HasSharedOrders", 2, ".i"); + SQAIVehicle.DefSQStaticMethod(engine, &AIVehicle::GetReliability, "GetReliability", 2, ".i"); SQAIVehicle.PostRegister(engine); } |