summaryrefslogtreecommitdiff
path: root/src/cat/LuaScriptInterface.h
diff options
context:
space:
mode:
authorSimon Robertshaw <simon@hardwired.org.uk>2012-08-20 17:37:42 (GMT)
committer Simon Robertshaw <simon@hardwired.org.uk>2012-08-20 17:37:42 (GMT)
commit72e441132f8a06679228b5f19e852f842b44689b (patch)
tree22476b72cd91fae2a7e8f4f6d32b1aeb79a7d058 /src/cat/LuaScriptInterface.h
parent51a0fb2d45d31cb30950d8d200a5d0fd7463fe4d (diff)
downloadpowder-72e441132f8a06679228b5f19e852f842b44689b.zip
powder-72e441132f8a06679228b5f19e852f842b44689b.tar.gz
TPT: Prevent accidental infinite loops in lua, fixes #115
Diffstat (limited to 'src/cat/LuaScriptInterface.h')
-rw-r--r--src/cat/LuaScriptInterface.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cat/LuaScriptInterface.h b/src/cat/LuaScriptInterface.h
index 44ad279..8c3e33e 100644
--- a/src/cat/LuaScriptInterface.h
+++ b/src/cat/LuaScriptInterface.h
@@ -40,6 +40,7 @@ class LuaScriptInterface: public CommandInterface {
bool currentCommand;
TPTScriptInterface * legacy;
public:
+ int LoopTime;
lua_State *l;
LuaScriptInterface(GameModel * m);
virtual bool OnBrushChanged(int brushType, int rx, int ry);