From c658ad8089bdd3714ef46539e49bee784cf3c840 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Thu, 27 Mar 2014 00:04:21 +1000 Subject: Comment out debugging stuff for now, and that means no more need for thing.name[1] in __newindex(). --- ClientHamr/GuiLua/skang.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ClientHamr') diff --git a/ClientHamr/GuiLua/skang.lua b/ClientHamr/GuiLua/skang.lua index e89de8e..dfcb5e7 100644 --- a/ClientHamr/GuiLua/skang.lua +++ b/ClientHamr/GuiLua/skang.lua @@ -293,7 +293,7 @@ Thing.__newindex = function (table, key, value) local thing = things[key] if thing then - local name = thing.names[1] +-- local name = thing.names[1] -- This is a proxy table, the values never exist in the real table. thing.value = value if 'function' == type(value) then @@ -302,7 +302,7 @@ Thing.__newindex = function (table, key, value) for i, v in ipairs(thing.types) do if 1 ~= i then types = types .. v .. ', ' end end - print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help) +-- print(thing.module._NAME .. '.' .. name .. '(' .. types .. ') -> ' .. thing.help) else -- NOTE - invalid values are still stored, this is by design. if not thing:isValid() then -- cgit v1.1