mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-02 20:34:41 +00:00
(svn r15668) -Fix: a few typos.
This commit is contained in:
parent
da0cbb2a2f
commit
13fb01d07d
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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 {
|
||||
|
@ -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; }
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user