forked from mirror/OpenTTD
(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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user