Account for unreflected missiles that got destroyed
This commit is contained in:
parent
7b742c35c4
commit
d7146a1d52
|
@ -243,6 +243,9 @@ function updateMissiles(dt)
|
||||||
while i <= #missiles do
|
while i <= #missiles do
|
||||||
if missiles[i].y > 1 + missile_radius or not missiles[i].alive then
|
if missiles[i].y > 1 + missile_radius or not missiles[i].alive then
|
||||||
-- Went off the bottom of the screen or exploded, delete
|
-- Went off the bottom of the screen or exploded, delete
|
||||||
|
if not missiles[i].reflected then
|
||||||
|
unreflected_missiles = unreflected_missiles - 1
|
||||||
|
end
|
||||||
table.remove(missiles, i)
|
table.remove(missiles, i)
|
||||||
else
|
else
|
||||||
i = i + 1
|
i = i + 1
|
||||||
|
|
Loading…
Reference in New Issue