summaryrefslogtreecommitdiff
path: root/render/draws/ui.lua
diff options
context:
space:
mode:
Diffstat (limited to 'render/draws/ui.lua')
-rw-r--r--render/draws/ui.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/render/draws/ui.lua b/render/draws/ui.lua
index 8ec4acb..c7f1b31 100644
--- a/render/draws/ui.lua
+++ b/render/draws/ui.lua
@@ -16,7 +16,7 @@ function ui.ammoBar()
-- draw circle behind it to indicate the progress
local chargingStarted = G.player.chargingStarted
local chargingTime = G.time - (chargingStarted or 0)
- if chargingStarted and i==#hearts then
+ if chargingStarted and i==G.player.nextBullet then
local arc = math.pi * 2 * (chargingTime or 0)
love.graphics.setColor(1,0,0,0.6)
love.graphics.arc("fill", position.x+heartR/2, position.y+heartR/2,