From 3fd8d2feccd10b855589a754cae7768d6d2fcd2f Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Sun, 23 Jun 2019 15:44:46 +0200 Subject: [PATCH] fix(hitboxes): reset colors after the hitbox is drawn. --- gamecore/modules/world/actors/utils/hitbox2D.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/gamecore/modules/world/actors/utils/hitbox2D.lua b/gamecore/modules/world/actors/utils/hitbox2D.lua index 4f4953d..f20c8ff 100644 --- a/gamecore/modules/world/actors/utils/hitbox2D.lua +++ b/gamecore/modules/world/actors/utils/hitbox2D.lua @@ -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