fix(gui): fix bad drawing of ennemies hp bar
This commit is contained in:
parent
8048210bac
commit
618c42b3b6
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ function gui.drawBar(x, y, width, height)
|
||||||
love.graphics.draw(barborder, x, y)
|
love.graphics.draw(barborder, x, y)
|
||||||
local barwidth = math.max(width-14, 0)
|
local barwidth = math.max(width-14, 0)
|
||||||
love.graphics.rectangle("fill", x+7, y, barwidth, height)
|
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( )
|
core.screen:resetScissor( )
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue