From 13fb01d07dde0e2749eef2948071d513a4685215 Mon Sep 17 00:00:00 2001 From: yexo Date: Wed, 11 Mar 2009 07:32:31 +0000 Subject: [PATCH] (svn r15668) -Fix: a few typos. --- src/ai/ai_instance.cpp | 4 ++-- src/ai/ai_scanner.cpp | 2 +- src/ai/ai_scanner.hpp | 2 +- src/script/squirrel_std.cpp | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 6a40f2fa0c..7bd0938673 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 f5c1231a8a..d369764011 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 9818288bbd..b79cf4984e 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 a9f390f70b..2e705a35f5 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)