From 39acce4502bdfad7bb1d59cd3dcbe335e8b690a6 Mon Sep 17 00:00:00 2001 From: jacob1 Date: Fri, 26 Jul 2013 18:36:17 -0400 Subject: fix tpt.heat return value diff --git a/src/cat/LegacyLuaAPI.cpp b/src/cat/LegacyLuaAPI.cpp index c8f02d1..2b7125a 100644 --- a/src/cat/LegacyLuaAPI.cpp +++ b/src/cat/LegacyLuaAPI.cpp @@ -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); -- cgit v0.9.2-21-gd62e