fix tpt.heat return value

This commit is contained in:
jacob1 2013-07-26 18:36:17 -04:00
parent bfc1cf99ca
commit 39acce4502

View File

@ -1871,7 +1871,7 @@ int luatpt_heat(lua_State* l)
heatstate = luaL_optint(l, 1, -1);
if (heatstate == -1)
{
lua_pushinteger(l, luacon_sim->legacy_enable);
lua_pushinteger(l, !luacon_sim->legacy_enable);
return 1;
}
luacon_sim->legacy_enable = (heatstate==1?0:1);