mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-02-03 04:43:12 +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)
|
/* static */ bool AIInstance::SaveObject(HSQUIRRELVM vm, SQInteger index, int max_depth, bool test)
|
||||||
{
|
{
|
||||||
if (max_depth == 0) {
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -499,7 +499,7 @@ enum {
|
|||||||
}
|
}
|
||||||
|
|
||||||
default:
|
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;
|
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;
|
if (!FioCheckFileExists(info_script, AI_DIR) || !FioCheckFileExists(main_script, AI_DIR)) continue;
|
||||||
|
|
||||||
DEBUG(ai, 6, "Loading AI at location '%s'", main_script);
|
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->ResetCrashed();
|
||||||
this->engine->LoadScript(info_script);
|
this->engine->LoadScript(info_script);
|
||||||
} else {
|
} else {
|
||||||
|
@ -56,7 +56,7 @@ public:
|
|||||||
const AIInfoList *GetUniqueAIInfoList() { return &this->info_single_list; }
|
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; }
|
class Squirrel *GetEngine() { return this->engine; }
|
||||||
|
|
||||||
|
@ -80,7 +80,7 @@ SQInteger SquirrelStd::require(HSQUIRRELVM vm)
|
|||||||
free(real_filename);
|
free(real_filename);
|
||||||
free(filen);
|
free(filen);
|
||||||
|
|
||||||
return ret ? 0: SQ_ERROR;
|
return ret ? 0 : SQ_ERROR;
|
||||||
}
|
}
|
||||||
|
|
||||||
SQInteger SquirrelStd::notifyallexceptions(HSQUIRRELVM vm)
|
SQInteger SquirrelStd::notifyallexceptions(HSQUIRRELVM vm)
|
||||||
|
Loading…
Reference in New Issue
Block a user