fix handling pships as an arraylist

This commit is contained in:
Kistaro Windrider 2023-09-30 02:15:05 -07:00
parent 814149ceec
commit 63c97d1bee
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -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()