Localize various unneeded global variables

This commit is contained in:
Wuzzy 2018-01-26 22:20:15 +01:00
parent a40dec6da9
commit 16bb9b8901
10 changed files with 30 additions and 28 deletions

View file

@ -140,6 +140,7 @@ local function check_end_portal_frame(pos)
end
end
-- All checks survived! We have a valid portal!
local k
if dir.x > 0 then
k = 1
else
@ -158,6 +159,7 @@ local function check_end_portal_frame(pos)
return false
end
end
local k
if dir.z > 0 then
k = 1
else