summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoryexo <yexo@openttd.org>2009-03-11 07:32:31 +0000
committeryexo <yexo@openttd.org>2009-03-11 07:32:31 +0000
commit28c49b694a61cc5a5ec885a847ce8f781139b4bd (patch)
tree3ef20a72217f010f1eb7696411f842d5c38bbd8a
parent3f9a117ad22759ade5c00cfe28555a3fdbd5fd25 (diff)
downloadopenttd-28c49b694a61cc5a5ec885a847ce8f781139b4bd.tar.xz
(svn r15668) -Fix: a few typos.
-rw-r--r--src/ai/ai_instance.cpp4
-rw-r--r--src/ai/ai_scanner.cpp2
-rw-r--r--src/ai/ai_scanner.hpp2
-rw-r--r--src/script/squirrel_std.cpp2
4 files changed, 5 insertions, 5 deletions
diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp
index 6a40f2fa0..7bd093867 100644
--- a/src/ai/ai_instance.cpp
+++ b/src/ai/ai_instance.cpp
@@ -388,7 +388,7 @@ enum {
/* static */ bool AIInstance::SaveObject(HSQUIRRELVM vm, SQInteger index, int max_depth, bool test)
{
if (max_depth == 0) {
- AILog::Error("Savedata can only be nested to 5 deep. No data saved.");
+ AILog::Error("Savedata can only be nested to 25 deep. No data saved.");
return false;
}
@@ -499,7 +499,7 @@ enum {
}
default:
- AILog::Error("You tried to save unsupported type. No data saved.");
+ AILog::Error("You tried to save an unsupported type. No data saved.");
return false;
}
}
diff --git a/src/ai/ai_scanner.cpp b/src/ai/ai_scanner.cpp
index f5c1231a8..d36976401 100644
--- a/src/ai/ai_scanner.cpp
+++ b/src/ai/ai_scanner.cpp
@@ -88,7 +88,7 @@ void AIScanner::ScanDir(const char *dirname, bool library_scan, bool library_rec
if (!FioCheckFileExists(info_script, AI_DIR) || !FioCheckFileExists(main_script, AI_DIR)) continue;
DEBUG(ai, 6, "Loading AI at location '%s'", main_script);
- /* We don't care if one of the other scripst failed to load. */
+ /* We don't care if one of the other scripts failed to load. */
this->engine->ResetCrashed();
this->engine->LoadScript(info_script);
} else {
diff --git a/src/ai/ai_scanner.hpp b/src/ai/ai_scanner.hpp
index 9818288bb..b79cf4984 100644
--- a/src/ai/ai_scanner.hpp
+++ b/src/ai/ai_scanner.hpp
@@ -56,7 +56,7 @@ public:
const AIInfoList *GetUniqueAIInfoList() { return &this->info_single_list; }
/**
- * Get the engine of the main squirrel handler (it indexes all avialable squirrels).
+ * Get the engine of the main squirrel handler (it indexes all available scripts).
*/
class Squirrel *GetEngine() { return this->engine; }
diff --git a/src/script/squirrel_std.cpp b/src/script/squirrel_std.cpp
index a9f390f70..2e705a35f 100644
--- a/src/script/squirrel_std.cpp
+++ b/src/script/squirrel_std.cpp
@@ -80,7 +80,7 @@ SQInteger SquirrelStd::require(HSQUIRRELVM vm)
free(real_filename);
free(filen);
- return ret ? 0: SQ_ERROR;
+ return ret ? 0 : SQ_ERROR;
}
SQInteger SquirrelStd::notifyallexceptions(HSQUIRRELVM vm)