oops, tilde only means "not" in "not equals"
This commit is contained in:
parent
803062ef43
commit
2e8bba2a0e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user