From d908604dcbf12c84a57f4d09be7b1628458a483a Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 1 May 2019 10:39:19 +0200 Subject: [PATCH] module/world: return camera coordinate in the right order --- gamecore/modules/world/camera.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)