summaryrefslogtreecommitdiff
path: root/src/luaconsole.c
diff options
context:
space:
mode:
authorBryan Hoyle <starfoxprime@gmail.com>2011-08-16 16:45:44 (GMT)
committer Bryan Hoyle <starfoxprime@gmail.com>2011-08-16 16:45:44 (GMT)
commitad09f3040e7e08bbe2d5b256a2933d148a2a8e3d (patch)
tree8a50f508226747d5521377bf655ca0aac85efaf6 /src/luaconsole.c
parenta5db1d53da133a78493be443b0ec9094ea3eeb65 (diff)
downloadpowder-ad09f3040e7e08bbe2d5b256a2933d148a2a8e3d.zip
powder-ad09f3040e7e08bbe2d5b256a2933d148a2a8e3d.tar.gz
Revert "Revert "added lua command: tpt.setfpscap(int FPSCap)""
This reverts commit a5db1d53da133a78493be443b0ec9094ea3eeb65.
Diffstat (limited to 'src/luaconsole.c')
-rw-r--r--src/luaconsole.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c
index 78b633d..186764d 100644
--- a/src/luaconsole.c
+++ b/src/luaconsole.c
@@ -55,6 +55,7 @@ void luacon_open(){
{"heat", &luatpt_heat},
{"setfire", &luatpt_setfire},
{"setdebug", &luatpt_setdebug},
+ {"setfpscap",&luatpt_setfpscap},
{NULL,NULL}
};
@@ -1055,4 +1056,10 @@ int luatpt_setdebug(lua_State* l)
debug_flags = debug;
return 0;
}
+int luatpt_setfpscap(lua_State* l)
+{
+int fpscap = luaL_optint(l, 1, 0);
+limitFPS = fpscap;
+return 0;
+}
#endif