From 7b522b81a4d81fc8de72e389b9f1e060fc94b2d1 Mon Sep 17 00:00:00 2001 From: Top Cat Date: Mon, 16 Dec 2013 04:41:05 +0000 Subject: [PATCH] Fix tearing --- entity/entity.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entity/entity.lua b/entity/entity.lua index d322b1b..b04c9c1 100755 --- a/entity/entity.lua +++ b/entity/entity.lua @@ -59,7 +59,7 @@ function Entity:rotate(angle) end function Entity:draw(vx, vy) - self.sprite:draw(self.x - vx, self.y - vy, self.orientation) + self.sprite:draw(math.floor(self.x - vx), math.floor(self.y - vy), self.orientation) if constants.debug then x1, y1, x2, y2 = self.hitbox:bbox()