Fighter damage indication fix.

This commit is contained in:
Steve 2016-05-12 09:34:33 +01:00
parent 2e17d68b47
commit bd1dac445a
1 changed files with 7 additions and 6 deletions

View File

@ -464,15 +464,16 @@ void damageFighter(Entity *e, int amount, long flags)
{
e->shield -= amount;
amount = 0;
if (e->shield < 0)
if (e->shield <= 0)
{
amount = -e->shield;
e->armourHit = 255;
e->health += e->shield;
e->shield = 0;
playBattleSound(SND_ARMOUR_HIT, e->x, e->y);
}
}
if (amount > 0)
else
{
e->health -= amount;
e->armourHit = 255;