diff options
author | glx <glx@openttd.org> | 2009-02-21 00:43:18 +0000 |
---|---|---|
committer | glx <glx@openttd.org> | 2009-02-21 00:43:18 +0000 |
commit | ab3fc1d4376fd5db464e6f7f9dc244560f099205 (patch) | |
tree | 3a4d310d13018512703d4a29573d32a37c7f5f3c /src/script | |
parent | 15789a76c147a69853b3bcb0aa592d96fbc7f182 (diff) | |
download | openttd-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/script')
-rw-r--r-- | src/script/squirrel_std.cpp | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/script/squirrel_std.cpp b/src/script/squirrel_std.cpp index 7cbdb4c43..a9f390f70 100644 --- a/src/script/squirrel_std.cpp +++ b/src/script/squirrel_std.cpp @@ -101,15 +101,15 @@ void squirrel_register_global_std(Squirrel *engine) { /* We don't use squirrel_helper here, as we want to register to the global * scope and not to a class. */ - engine->AddMethod("require", &SquirrelStd::require, 2, "?s"); - engine->AddMethod("notifyallexceptions", &SquirrelStd::notifyallexceptions, 2, "?b"); + engine->AddMethod("require", &SquirrelStd::require, 2, ".s"); + engine->AddMethod("notifyallexceptions", &SquirrelStd::notifyallexceptions, 2, ".b"); } void squirrel_register_std(Squirrel *engine) { /* We don't use squirrel_helper here, as we want to register to the global * scope and not to a class. */ - engine->AddMethod("abs", &SquirrelStd::abs, 2, "?i"); - engine->AddMethod("min", &SquirrelStd::min, 3, "?ii"); - engine->AddMethod("max", &SquirrelStd::max, 3, "?ii"); + engine->AddMethod("abs", &SquirrelStd::abs, 2, ".i"); + engine->AddMethod("min", &SquirrelStd::min, 3, ".ii"); + engine->AddMethod("max", &SquirrelStd::max, 3, ".ii"); } |