summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-05-07 12:13:58 +0000
committeryexo <yexo@openttd.org>2009-05-07 12:13:58 +0000
commit73e1d188710f2745d27505da34e2f68e3f63f551 (patch)
tree4e641c894c53e377b13fe717aed5fd8e4464f3a6
parentafc5c663863fb2fb59ce85ef1617c2a9a44a5449 (diff)
downloadopenttd-73e1d188710f2745d27505da34e2f68e3f63f551.tar.xz
(svn r16249) -Fix [NoAI]: Enable parameter checking for AIController::* functions again
-rw-r--r--src/ai/api/ai_controller.hpp.sq10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/api/ai_controller.hpp.sq b/src/ai/api/ai_controller.hpp.sq
index 911fe42b6..68282db32 100644
--- a/src/ai/api/ai_controller.hpp.sq
+++ b/src/ai/api/ai_controller.hpp.sq
@@ -5,10 +5,10 @@
void SQAIController_Register(Squirrel *engine) {
DefSQClass <AIController> SQAIController("AIController");
SQAIController.PreRegister(engine);
- SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, "?");
- 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::Print, "Print", 3, "?bs");
+ SQAIController.DefSQStaticMethod(engine, &AIController::GetTick, "GetTick", 1, ".");
+ 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::Print, "Print", 3, ".bs");
SQAIController.PostRegister(engine);
}