I am baffled I never noticed this before

This commit is contained in:
Kistaro Windrider 2024-01-27 13:25:47 -08:00
parent bd61ca2639
commit 5d2dafa64c
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -75,7 +75,7 @@ function updategame()
edeaths = {} edeaths = {}
for ip, ps in ipairs(pships) do for ip, ps in ipairs(pships) do
for ie, eb in ipairs(ebullets) do for ie, eb in ipairs(ebullets) do
if collides(hurtobx(ps), hurtbox(eb)) then if collides(hurtbox(ps), hurtbox(eb)) then
if (eb:hitship(ps)) add(edeaths, ie) if (eb:hitship(ps)) add(edeaths, ie)
if ps:hitbullet(eb) then if ps:hitbullet(eb) then
add(pdeaths, ip) add(pdeaths, ip)