changeset 18421:f77ba6ced4e2 draft

(svn r23263) -Documentation: stop naming AI in comments in script/ files; it makes no sense
author truebrain <truebrain@openttd.org>
date Sat, 19 Nov 2011 15:50:10 +0000
parents 32f121a43057
children 470aeadadd91
files src/script/script_info.cpp src/script/squirrel.cpp src/script/squirrel_class.hpp
diffstat 3 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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()
--- a/src/script/squirrel.cpp
+++ b/src/script/squirrel.cpp
@@ -237,7 +237,7 @@
 	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. */
--- 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 {