Allow bullets to still hit immortal entities, but not inflict any real damage.
This commit is contained in:
parent
a5676b9b49
commit
c716f84884
|
@ -183,11 +183,13 @@ static void checkCollisions(Bullet *b)
|
|||
}
|
||||
}
|
||||
|
||||
if (!(e->flags & EF_IMMORTAL))
|
||||
if (e->flags & EF_IMMORTAL)
|
||||
{
|
||||
damageFighter(e, b->damage, b->flags);
|
||||
b->damage = 0;
|
||||
}
|
||||
|
||||
damageFighter(e, b->damage, b->flags);
|
||||
|
||||
b->life = 0;
|
||||
b->damage = 0;
|
||||
|
||||
|
|
Loading…
Reference in New Issue