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