Get rid of a ton of global variables
This commit is contained in:
parent
06933135b4
commit
bc9491ffdd
22 changed files with 214 additions and 4114 deletions
|
@ -39,7 +39,7 @@ local function get_v(v)
|
|||
return math.sqrt(v.x^2+v.z^2)
|
||||
end
|
||||
|
||||
function merge(a, b)
|
||||
local function merge(a, b)
|
||||
if type(a) == 'table' and type(b) == 'table' then
|
||||
for k,v in pairs(b) do if type(v)=='table' and type(a[k] or false)=='table' then merge(a[k],v) else a[k]=v end end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue