summaryrefslogtreecommitdiff
path: root/src/ai/api/ai_error.hpp.sq
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-02-14 20:03:06 +0000
committeryexo <yexo@openttd.org>2009-02-14 20:03:06 +0000
commit37819fc8c59f7eb3e38e1831b2db6db497e194e6 (patch)
treed02c8c1864f2e3ddd413d805229eafd85198a67a /src/ai/api/ai_error.hpp.sq
parent84deeecc5b21584b7aee023bb820671683cd7ef1 (diff)
downloadopenttd-37819fc8c59f7eb3e38e1831b2db6db497e194e6.tar.xz
(svn r15481) -Fix [NoAI]: Make sure AIs can't call functions they shouldn't call.
Diffstat (limited to 'src/ai/api/ai_error.hpp.sq')
-rw-r--r--src/ai/api/ai_error.hpp.sq9
1 files changed, 3 insertions, 6 deletions
diff --git a/src/ai/api/ai_error.hpp.sq b/src/ai/api/ai_error.hpp.sq
index 929907599..0ce1cfed4 100644
--- a/src/ai/api/ai_error.hpp.sq
+++ b/src/ai/api/ai_error.hpp.sq
@@ -109,12 +109,9 @@ void SQAIError_Register(Squirrel *engine) {
AIError::RegisterErrorMapString(AIError::ERR_TOO_CLOSE_TO_EDGE, "ERR_TOO_CLOSE_TO_EDGE");
AIError::RegisterErrorMapString(AIError::ERR_STATION_TOO_SPREAD_OUT, "ERR_STATION_TOO_SPREAD_OUT");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetErrorCategory, "GetErrorCategory", 1, "?");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetLastError, "GetLastError", 1, "?");
- SQAIError.DefSQStaticMethod(engine, &AIError::GetLastErrorString, "GetLastErrorString", 1, "?");
- SQAIError.DefSQStaticMethod(engine, &AIError::StringToError, "StringToError", 2, "?i");
- SQAIError.DefSQStaticMethod(engine, &AIError::RegisterErrorMap, "RegisterErrorMap", 3, "?ii");
- SQAIError.DefSQStaticMethod(engine, &AIError::RegisterErrorMapString, "RegisterErrorMapString", 3, "?is");
+ SQAIError.DefSQStaticMethod(engine, &AIError::GetErrorCategory, "GetErrorCategory", 1, "?");
+ SQAIError.DefSQStaticMethod(engine, &AIError::GetLastError, "GetLastError", 1, "?");
+ SQAIError.DefSQStaticMethod(engine, &AIError::GetLastErrorString, "GetLastErrorString", 1, "?");
SQAIError.PostRegister(engine);
}