module/world: return camera coordinate in the right order

This commit is contained in:
Kazhnuz 2019-05-01 10:39:19 +02:00
parent a2d38a1ef4
commit d908604dcb

View file

@ -196,13 +196,13 @@ end
function CameraSystem:getViewCoordinate(id)
local cam = self:getViewCam(id)
local camx, camy, camh, camw
local camx, camy, camw, camh
camx = cam.x - (self.views.width/2)
camy = cam.y - (self.views.height/2)
camw = self.views.width
camh = self.views.height
return camx, camy, camh, camw
return camx, camy, camw, camh
end
function CameraSystem:getOnScreenViewCoordinate(id)