(svn r15406) -Fix: make Valuate actually cost a few opcodes to not make it a single opcode method of doing lots of the same thing. This should resolve most of the hiccups caused by AIs.

This commit is contained in:
rubidium
2009-02-08 01:51:48 +00:00
parent 8bd5f10a2c
commit e1b1fd18b5
3 changed files with 13 additions and 0 deletions

View File

@@ -454,3 +454,8 @@ void Squirrel::InsertResult(int result)
vm->GetAt(vm->_stackbase + vm->_suspended_target) = vm->GetUp(-1);
vm->Pop();
}
/* static */ void Squirrel::DecreaseOps(HSQUIRRELVM vm, int ops)
{
vm->DecreaseOps(ops);
}