summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_vehicle.hpp.sq
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-07-10 22:30:38 +0000
committeryexo <yexo@openttd.org>2009-07-10 22:30:38 +0000
commitb58001f6956c9fb825d5b00b125349b221a71cd8 (patch)
tree28ea35f156838ccf6047d0f75065b0a728e5abd3 /src/ai/api/ai_vehicle.hpp.sq
parent4843b3c45d7dac3dc3bde82b8b4b0cfd3c5924e1 (diff)
downloadopenttd-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.sq1
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);
}