From a00b22b1cd101eebc8dd1f8b54713dd3a3ca00eb Mon Sep 17 00:00:00 2001 From: yexo Date: Thu, 7 May 2009 21:33:38 +0000 Subject: (svn r16253) -Add [NoAI]: AIController::GetVersion, this returns the newgrf-version of OpenTTD --- src/ai/api/ai_controller.hpp.sq | 1 + 1 file changed, 1 insertion(+) (limited to 'src/ai/api/ai_controller.hpp.sq') 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); } -- cgit v1.2.3-54-g00ecf