fix handling pships as an arraylist
This commit is contained in:
parent
814149ceec
commit
63c97d1bee
@ -242,9 +242,7 @@ function updategame()
|
|||||||
if leveldone and not eships.next and not ebullets.next and not events.next then
|
if leveldone and not eships.next and not ebullets.next and not events.next then
|
||||||
state = win
|
state = win
|
||||||
end
|
end
|
||||||
if #pships == 0 then
|
if (not pships.next) state = lose end
|
||||||
state = lose
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
function _draw()
|
function _draw()
|
||||||
|
Loading…
Reference in New Issue
Block a user