(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

@@ -186,6 +186,11 @@ public:
* Release a SQ object.
*/
void ReleaseObject(HSQOBJECT *ptr) { sq_release(this->vm, ptr); }
/**
* Tell the VM to remove \c amount ops from the number of ops till suspend.
*/
static void DecreaseOps(HSQUIRRELVM vm, int amount);
};
#endif /* SQUIRREL_HPP */