From 81657379392e34031d91496d7fba5e235c248501 Mon Sep 17 00:00:00 2001 From: yexo Date: Fri, 2 Apr 2010 17:35:20 +0000 Subject: (svn r19544) -Feature [FS#3496]: add an input box to the AI Debug window where you can input a break string (patch by Zuu) --- src/ai/ai_instance.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/ai/ai_instance.cpp') diff --git a/src/ai/ai_instance.cpp b/src/ai/ai_instance.cpp index 41ec1c85e..fb258eee3 100644 --- a/src/ai/ai_instance.cpp +++ b/src/ai/ai_instance.cpp @@ -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); -- cgit v1.2.3-70-g09d2