Add 'local'

This commit is contained in:
Matthias Richter 2011-01-20 15:26:28 +01:00
parent 762de78e51
commit 5abd0f599d

View File

@ -74,7 +74,7 @@ end
function camera:toWorldCoords(p) function camera:toWorldCoords(p)
local w,h = love.graphics.getWidth(), love.graphics.getHeight() local w,h = love.graphics.getWidth(), love.graphics.getHeight()
p = vector((p.x-w/2) / self.zoom, (p.y-h/2) / self.zoom):rotate_inplace(-self.rot) local p = vector((p.x-w/2) / self.zoom, (p.y-h/2) / self.zoom):rotate_inplace(-self.rot)
return p + self.pos return p + self.pos
end end