oops, tilde only means "not" in "not equals"

This commit is contained in:
Kistaro Windrider 2023-09-30 02:18:19 -07:00
parent 803062ef43
commit 2e8bba2a0e
Signed by: kistaro
SSH Key Fingerprint: SHA256:TBE2ynfmJqsAf0CP6gsflA0q5X5wD5fVKWPsZ7eVUg8

View File

@ -187,7 +187,7 @@ function updategame()
local pbox, pded = hurtbox(ps), false local pbox, pded = hurtbox(ps), false
eships:strip( eships:strip(
function(es) function(es)
if (~collides(pbox, hurtbox(es))) return if (not collides(pbox, hurtbox(es))) return
pded = pded or ps:hitship(es) pded = pded or ps:hitship(es)
return es:hitship(ps) return es:hitship(ps)
end end
@ -200,7 +200,7 @@ function updategame()
local pbox, pded = hurtbox(ps), false local pbox, pded = hurtbox(ps), false
ebullets:strip( ebullets:strip(
function(eb) function(eb)
if (~collides(pbox, hurtbox(eb))) return if (not collides(pbox, hurtbox(eb))) return
pded = pded or ps:hitbullet(eb) pded = pded or ps:hitbullet(eb)
return eb:hitship(ps) return eb:hitship(ps)
end end