From 98fb57afaae013fb5252abdad375fdb7433a4f64 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Wed, 1 May 2019 11:26:15 +0200 Subject: [PATCH] modules/world: floor the coordinate for sprite drawing --- gamecore/modules/world/actors/actor2D.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gamecore/modules/world/actors/actor2D.lua b/gamecore/modules/world/actors/actor2D.lua index ac35693..1c64f0a 100644 --- a/gamecore/modules/world/actors/actor2D.lua +++ b/gamecore/modules/world/actors/actor2D.lua @@ -205,7 +205,7 @@ end function Actor2D:draw() local x, y = math.floor(self.x), math.floor(self.y) - self:drawSprite(self.x, self.y) + self:drawSprite(x, y) end function Actor2D:drawHitbox()