diff options
author | rubidium <rubidium@openttd.org> | 2009-02-08 01:51:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2009-02-08 01:51:48 +0000 |
commit | e1b1fd18b538e7cbe9b8c5b757b683c4a79f4637 (patch) | |
tree | 90b4e755d074b6d4d949c4938eb3d5177c238609 /src/script/squirrel.cpp | |
parent | 8bd5f10a2c833b51380ef3f0326071b1de3a8f0d (diff) | |
download | openttd-e1b1fd18b538e7cbe9b8c5b757b683c4a79f4637.tar.xz |
(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.
Diffstat (limited to 'src/script/squirrel.cpp')
-rw-r--r-- | src/script/squirrel.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/script/squirrel.cpp b/src/script/squirrel.cpp index 1400eaf0a..602cc593d 100644 --- a/src/script/squirrel.cpp +++ b/src/script/squirrel.cpp @@ -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); +} |