- call TakeSpecialDamage, even if damage is 0, just like it was in older versions.

This commit is contained in:
Christoph Oelckers 2015-03-27 09:03:44 +01:00
parent 5d27bf7742
commit 66c3c93529
1 changed files with 1 additions and 2 deletions

View File

@ -1129,8 +1129,7 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
return -1;
}
}
if (damage > 0)
damage = target->TakeSpecialDamage (inflictor, source, damage, mod);
damage = target->TakeSpecialDamage (inflictor, source, damage, mod);
}
if (damage == -1 && target->player == NULL) //Make sure it's not a player, the pain has yet to be processed with cheats.
{