(svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu)

This commit is contained in:
yexo
2010-04-02 17:35:20 +00:00
parent 1cab553994
commit 8165737939
7 changed files with 166 additions and 4 deletions

View File

@@ -658,6 +658,12 @@ void AIInstance::Save()
}
void AIInstance::Suspend()
{
HSQUIRRELVM vm = this->engine->GetVM();
Squirrel::DecreaseOps(vm, _settings_game.ai.ai_max_opcode_till_suspend);
}
/* static */ bool AIInstance::LoadObjects(HSQUIRRELVM vm)
{
SlObject(NULL, _ai_byte);