mirror of
https://github.com/linux-man/LoveFrames.git
synced 2024-11-18 16:04:22 +00:00
Removed variables that were only used once
Overoptimisation.
This commit is contained in:
parent
cea6a20ea3
commit
1642d10816
@ -762,15 +762,12 @@ end
|
|||||||
--]]---------------------------------------------------------
|
--]]---------------------------------------------------------
|
||||||
function newobject:MakeTop()
|
function newobject:MakeTop()
|
||||||
|
|
||||||
local x, y = love.mouse.getPosition()
|
|
||||||
local key = 0
|
local key = 0
|
||||||
local base = loveframes.base
|
|
||||||
local basechildren = base.children
|
local basechildren = base.children
|
||||||
local numbasechildren = #basechildren
|
local numbasechildren = #basechildren
|
||||||
local parent = self.parent
|
|
||||||
|
|
||||||
-- check to see if the object's parent is not the base object
|
-- check to see if the object's parent is not the base object
|
||||||
if parent ~= base then
|
if loveframes.parent ~= loveframes.base then
|
||||||
local baseparent = self:GetBaseParent()
|
local baseparent = self:GetBaseParent()
|
||||||
if baseparent.type == "frame" then
|
if baseparent.type == "frame" then
|
||||||
baseparent:MakeTop()
|
baseparent:MakeTop()
|
||||||
|
Loading…
Reference in New Issue
Block a user