rename to explicit variables

This commit is contained in:
Tai @ Flex 2016-11-26 13:27:15 +00:00
parent 70ed7e34a0
commit 4eda120fc1

View File

@ -6,16 +6,16 @@ areas.register_hud_handler = function(handler)
end end
-- Generalized call to registered handlers to add their proeciton labels to the areas list -- Generalized call to registered handlers to add their proeciton labels to the areas list
local detect_extra_protection = function(pos,res) local detect_extra_protection = function(pos,area_list)
if #protection_detectors <= 0 then if #protection_detectors <= 0 then
return res return area_list
end end
for idx=1,#protection_detectors do for idx=1,#protection_detectors do
local func = protection_detectors[idx] local func = protection_detectors[idx]
res = func(pos,res) area_list = func(pos,area_list)
end end
return res return area_list
end end
--- Returns a list of areas that include the provided position. --- Returns a list of areas that include the provided position.