fix(hitboxes): reset colors after the hitbox is drawn.

This commit is contained in:
Kazhnuz 2019-06-23 15:44:46 +02:00
parent 41cbf40890
commit 3fd8d2fecc
1 changed files with 1 additions and 0 deletions

View File

@ -102,6 +102,7 @@ function Hitbox2D:draw()
local x, y = self:getPosition()
love.graphics.setColor(self.debug.r, self.debug.g, self.debug.b, 1)
utils.graphics.box(x, y, self.w, self.h)
utils.graphics.resetColor()
end
return Hitbox2D