summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_controller.hpp.sq
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-05-07 21:33:38 +0000
committeryexo <yexo@openttd.org>2009-05-07 21:33:38 +0000
commita00b22b1cd101eebc8dd1f8b54713dd3a3ca00eb (patch)
treecc8879a7b550a909c37360505840ca50d63d9adb /src/ai/api/ai_controller.hpp.sq
parent9b4a32deb41a33ea1a83ee1f14256e087460e1e5 (diff)
downloadopenttd-a00b22b1cd101eebc8dd1f8b54713dd3a3ca00eb.tar.xz
(svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the newgrf-version of OpenTTD
Diffstat (limited to 'src/ai/api/ai_controller.hpp.sq')
-rw-r--r--src/ai/api/ai_controller.hpp.sq1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/ai/api/ai_controller.hpp.sq b/src/ai/api/ai_controller.hpp.sq
index 68282db32..02212061b 100644
--- a/src/ai/api/ai_controller.hpp.sq
+++ b/src/ai/api/ai_controller.hpp.sq
@@ -9,6 +9,7 @@ void SQAIController_Register(Squirrel *engine) {
SQAIController.DefSQStaticMethod(engine, &AIController::SetCommandDelay, "SetCommandDelay", 2, ".i");
SQAIController.DefSQStaticMethod(engine, &AIController::Sleep, "Sleep", 2, ".i");
SQAIController.DefSQStaticMethod(engine, &AIController::GetSetting, "GetSetting", 2, ".s");
+ SQAIController.DefSQStaticMethod(engine, &AIController::GetVersion, "GetVersion", 1, ".");
SQAIController.DefSQStaticMethod(engine, &AIController::Print, "Print", 3, ".bs");
SQAIController.PostRegister(engine);
}