Localize various unneeded global variables
This commit is contained in:
parent
a40dec6da9
commit
16bb9b8901
10 changed files with 30 additions and 28 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue