I am baffled I never noticed this before

This commit is contained in:
2024-01-27 13:25:47 -08:00
parent bd61ca2639
commit 5d2dafa64c

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)