Allow bullets to still hit immortal entities, but not inflict any real damage.

This commit is contained in:
Steve 2016-04-09 13:23:54 +01:00
parent a5676b9b49
commit c716f84884
1 changed files with 5 additions and 3 deletions

View File

@ -182,11 +182,13 @@ static void checkCollisions(Bullet *b)
battle.stats[STAT_ROCKETS_HIT]++;
}
}
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;