modules/world: floor the coordinate for sprite drawing

This commit is contained in:
Kazhnuz 2019-05-01 11:26:15 +02:00
parent 257eec8290
commit 98fb57afaa
1 changed files with 1 additions and 1 deletions

View File

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