summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_date.hpp.sq
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2009-02-21 00:43:18 +0000
committerglx <glx@openttd.org>2009-02-21 00:43:18 +0000
commitab3fc1d4376fd5db464e6f7f9dc244560f099205 (patch)
tree3a4d310d13018512703d4a29573d32a37c7f5f3c /src/ai/api/ai_date.hpp.sq
parent15789a76c147a69853b3bcb0aa592d96fbc7f182 (diff)
downloadopenttd-ab3fc1d4376fd5db464e6f7f9dc244560f099205.tar.xz
(svn r15535) -Fix (r15460, pre noai merge): use '.' as 'any' for squirrel calls typechecking as stated in squirrel docs
Diffstat (limited to 'src/ai/api/ai_date.hpp.sq')
-rw-r--r--src/ai/api/ai_date.hpp.sq10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/api/ai_date.hpp.sq b/src/ai/api/ai_date.hpp.sq
index a5ebf6136..36085792d 100644
--- a/src/ai/api/ai_date.hpp.sq
+++ b/src/ai/api/ai_date.hpp.sq
@@ -17,11 +17,11 @@ void SQAIDate_Register(Squirrel *engine) {
SQAIDate.PreRegister(engine);
SQAIDate.AddConstructor<void (AIDate::*)(), 1>(engine, "x");
- SQAIDate.DefSQStaticMethod(engine, &AIDate::GetCurrentDate, "GetCurrentDate", 1, "?");
- SQAIDate.DefSQStaticMethod(engine, &AIDate::GetYear, "GetYear", 2, "?i");
- SQAIDate.DefSQStaticMethod(engine, &AIDate::GetMonth, "GetMonth", 2, "?i");
- SQAIDate.DefSQStaticMethod(engine, &AIDate::GetDayOfMonth, "GetDayOfMonth", 2, "?i");
- SQAIDate.DefSQStaticMethod(engine, &AIDate::GetDate, "GetDate", 4, "?iii");
+ SQAIDate.DefSQStaticMethod(engine, &AIDate::GetCurrentDate, "GetCurrentDate", 1, ".");
+ SQAIDate.DefSQStaticMethod(engine, &AIDate::GetYear, "GetYear", 2, ".i");
+ SQAIDate.DefSQStaticMethod(engine, &AIDate::GetMonth, "GetMonth", 2, ".i");
+ SQAIDate.DefSQStaticMethod(engine, &AIDate::GetDayOfMonth, "GetDayOfMonth", 2, ".i");
+ SQAIDate.DefSQStaticMethod(engine, &AIDate::GetDate, "GetDate", 4, ".iii");
SQAIDate.PostRegister(engine);
}