diff --git a/gamecore/modules/world/camera.lua b/gamecore/modules/world/camera.lua index 88eb2ae..5e11f99 100644 --- a/gamecore/modules/world/camera.lua +++ b/gamecore/modules/world/camera.lua @@ -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)