From 618c42b3b660ae8fcac31391f1fc7328c4623d27 Mon Sep 17 00:00:00 2001 From: Kazhnuz Date: Fri, 16 Aug 2019 22:58:12 +0200 Subject: [PATCH] fix(gui): fix bad drawing of ennemies hp bar --- sonic-radiance.love/game/modules/gui/init.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sonic-radiance.love/game/modules/gui/init.lua b/sonic-radiance.love/game/modules/gui/init.lua index d4f71f4..27e3cad 100644 --- a/sonic-radiance.love/game/modules/gui/init.lua +++ b/sonic-radiance.love/game/modules/gui/init.lua @@ -47,7 +47,7 @@ function gui.drawBar(x, y, width, height) love.graphics.draw(barborder, x, y) local barwidth = math.max(width-14, 0) love.graphics.rectangle("fill", x+7, y, barwidth, height) - love.graphics.draw(barborder, x+width-7, y, 0, -1, -1, 7, 7) + love.graphics.draw(barborder, x+barwidth+7, y, 0, -1, -1, 7, 7) core.screen:resetScissor( ) end end