From 5eed16bac4db4273f6952832e3c2e4ec7da54dd0 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Thu, 2 May 2019 17:34:35 +0200 Subject: [PATCH] modules/world: make local the vx and vy variables --- gamecore/modules/world/baseworld.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gamecore/modules/world/baseworld.lua b/gamecore/modules/world/baseworld.lua index a9ba67e..41ba0fa 100644 --- a/gamecore/modules/world/baseworld.lua +++ b/gamecore/modules/world/baseworld.lua @@ -310,8 +310,7 @@ function BaseWorld:drawMap(id) -- de position de camera pour afficher la carte par rapport à ces infos tx, ty = self.cameras:getViewCoordinate(id) scale = self.cameras:getViewScale(id) or 1 - vx, vy = self.cameras:getOnScreenViewRelativePosition(id) - print(tx + vx, ty + vy) + local vx, vy = self.cameras:getOnScreenViewRelativePosition(id) tx = math.floor(tx - math.abs(vx)) ty = math.floor(ty - math.abs(vy)) end