diff options
author | rubidium <rubidium@openttd.org> | 2011-02-20 20:28:49 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2011-02-20 20:28:49 +0000 |
commit | e9fe58d7bf7876f41b3deb1fe1295bab8897ed98 (patch) | |
tree | 7ed7343f18f89e0c994e764961ed59b2582e27b8 /src/script/squirrel.hpp | |
parent | 7d24d642d96820cbf61b38bcda6efb4b6c6f47a8 (diff) | |
download | openttd-e9fe58d7bf7876f41b3deb1fe1295bab8897ed98.tar.xz |
(svn r22120) -Change: [NoAI] Prevent AIs from getting consistently over their allowed amount of operations by subtracting the amount they went over "budget" from the budget for the next "tick".
Diffstat (limited to 'src/script/squirrel.hpp')
-rw-r--r-- | src/script/squirrel.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/script/squirrel.hpp b/src/script/squirrel.hpp index d50dc356a..1ada519cc 100644 --- a/src/script/squirrel.hpp +++ b/src/script/squirrel.hpp @@ -22,6 +22,7 @@ private: void *global_pointer; ///< Can be set by who ever initializes Squirrel SQPrintFunc *print_func; ///< Points to either NULL, or a custom print handler bool crashed; ///< True if the squirrel script made an error. + int overdrawn_ops; ///< The amount of operations we have overdrawn. /** * The internal RunError handler. It looks up the real error and calls RunError with it. |