vars cleanups

This commit is contained in:
p.kosyh 2010-06-21 17:18:30 +00:00
parent 78bd383c4c
commit 38ac49652a

View file

@ -13,6 +13,9 @@ end)
function __vars_fill(v) function __vars_fill(v)
local k,o local k,o
if type(v) ~= 'table' then
return
end
if type(v.var) == 'table' then if type(v.var) == 'table' then
local k,o local k,o
local vars = {} local vars = {}
@ -34,11 +37,9 @@ end
vars_object = obj { vars_object = obj {
nam = 'vars', nam = 'vars',
ini = function(s) ini = function(s)
local fill = function(k, o)
__vars_fill(o)
end
__vars_fill(_G) __vars_fill(_G)
for_each_object(fill); __vars_fill(pl)
__vars_fill(game)
end end
} }