Skip to content

Commit

Permalink
Fix tearing
Browse files Browse the repository at this point in the history
  • Loading branch information
Top-Cat committed Dec 16, 2013
1 parent 40d6f24 commit 7b522b8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entity/entity.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit 7b522b8

Please sign in to comment.