summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--camera.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/camera.lua b/camera.lua
index 32a1bed..f9cc839 100644
--- a/camera.lua
+++ b/camera.lua
@@ -65,7 +65,7 @@ end
function Camera:translatePosition(x, y)
local x = x or 0
local y = y or 0
- return x-self.x*self.scale, y-self.y*self.scale
+ return (x-self.x)*self.scale, (y-self.y)*self.scale
end
function Camera:translatePoints(...)