diff options
Diffstat (limited to 'src/luaconsole.c')
| -rw-r--r-- | src/luaconsole.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/luaconsole.c b/src/luaconsole.c index dac25ea..5eba5e2 100644 --- a/src/luaconsole.c +++ b/src/luaconsole.c @@ -53,6 +53,7 @@ void luacon_open(){ {"display_mode", &luatpt_cmode_set}, {"throw_error", &luatpt_error}, {"heat", &luatpt_heat}, + {"setfire", &luatpt_setfire}, {NULL,NULL} }; @@ -1036,8 +1037,15 @@ int luatpt_heat(lua_State* l) int luatpt_cmode_set(lua_State* l) { int aheatstate; - aheatstate = luaL_optint(l, 1, CM_COUNT); + aheatstate = luaL_optint(l, 1, CM_FIRE); cmode = aheatstate; return 0; } +int luatpt_setfire(lua_State* l) +{ + int firesize = luaL_optint(l, 2, 4); + float fireintensity = (float)luaL_optnumber(l, 1, 1.0d); + prepare_alpha(firesize, fireintensity); + return 0; +} #endif |
