modules/world: make local the vx and vy variables

This commit is contained in:
Kazhnuz 2019-05-02 17:34:35 +02:00
parent eddf66595c
commit 5eed16bac4

View file

@ -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