diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-11 19:12:52 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-08-11 19:12:52 (GMT) |
| commit | d5435c50a966c0fb5a0c62a5af7aa834ccf9e48d (patch) | |
| tree | dece342fdb3f1245d8f962183a37a334a89ddeaf /src/luaconsole.c | |
| parent | 4f8720eecc034fcbb91fb5045bd7670140ba2f2f (diff) | |
| download | powder-d5435c50a966c0fb5a0c62a5af7aa834ccf9e48d.zip powder-d5435c50a966c0fb5a0c62a5af7aa834ccf9e48d.tar.gz | |
Debug info for particles allocation
Diffstat (limited to 'src/luaconsole.c')
| -rw-r--r-- | src/luaconsole.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c index e1d08e3..78b633d 100644 --- a/src/luaconsole.c +++ b/src/luaconsole.c @@ -54,6 +54,7 @@ void luacon_open(){ {"throw_error", &luatpt_error}, {"heat", &luatpt_heat}, {"setfire", &luatpt_setfire}, + {"setdebug", &luatpt_setdebug}, {NULL,NULL} }; @@ -1048,4 +1049,10 @@ int luatpt_setfire(lua_State* l) prepare_alpha(firesize, fireintensity); return 0; } +int luatpt_setdebug(lua_State* l) +{ + int debug = luaL_optint(l, 1, 0); + debug_flags = debug; + return 0; +} #endif |
