diff options
author | truebrain <truebrain@openttd.org> | 2011-11-19 15:50:10 +0000 |
---|---|---|
committer | truebrain <truebrain@openttd.org> | 2011-11-19 15:50:10 +0000 |
commit | b927ae5be96af3711710a7f30cd52c5e5a278e72 (patch) | |
tree | 345d31600122d8fbe9ff76a890f1f7a05b0d12ec /src/script | |
parent | e9dfd7a8974694dec72f3aeda2e40e125b27062d (diff) | |
download | openttd-b927ae5be96af3711710a7f30cd52c5e5a278e72.tar.xz |
(svn r23263) -Documentation: stop naming AI in comments in script/ files; it makes no sense
Diffstat (limited to 'src/script')
-rw-r--r-- | src/script/script_info.cpp | 2 | ||||
-rw-r--r-- | src/script/squirrel.cpp | 2 | ||||
-rw-r--r-- | src/script/squirrel_class.hpp | 3 |
3 files changed, 3 insertions, 4 deletions
diff --git a/src/script/script_info.cpp b/src/script/script_info.cpp index a01456130..8255bc04b 100644 --- a/src/script/script_info.cpp +++ b/src/script/script_info.cpp @@ -18,7 +18,7 @@ /** Number of operations to get the author and similar information. */ static const int MAX_GET_OPS = 1000; -/** Number of operations to create an instance of an AI. */ +/** Number of operations to create an instance of a script. */ static const int MAX_CREATEINSTANCE_OPS = 100000; ScriptFileInfo::~ScriptFileInfo() diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index 193f4355c..e0f50f1d9 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -237,7 +237,7 @@ bool Squirrel::CallMethod(HSQOBJECT instance, const char *method_name, HSQOBJECT sq_pushobject(this->vm, instance); if (SQ_FAILED(sq_call(this->vm, 1, ret == NULL ? SQFalse : SQTrue, SQTrue, suspend))) return false; if (ret != NULL) sq_getstackobj(vm, -1, ret); - /* Reset the top, but don't do so for the AI main function, as we need + /* Reset the top, but don't do so for the script main function, as we need * a correct stack when resuming. */ if (suspend == -1 || !this->IsSuspended()) sq_settop(this->vm, top); /* Restore the return-value location. */ diff --git a/src/script/squirrel_class.hpp b/src/script/squirrel_class.hpp index 0a1ab73dc..a08d8b3a6 100644 --- a/src/script/squirrel_class.hpp +++ b/src/script/squirrel_class.hpp @@ -16,8 +16,7 @@ /** * The template to define classes in Squirrel. It takes care of the creation - * and calling of such classes, to make the AI Layer cleaner while having a - * powerful script as possible AI language. + * and calling of such classes, to minimize the API layer. */ template <class CL> class DefSQClass { |