- small oversight: TakeSpecialDamage must be called if damage is 0 (to do the special death state checks) but it may not be called if damage is already -1, because that means that damage and pain have already been ruled out completely.

This commit is contained in:
Christoph Oelckers 2015-03-27 14:37:13 +01:00
parent 9d5e6d32c7
commit eb78c24140
1 changed files with 1 additions and 1 deletions

View File

@ -1094,7 +1094,7 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
}
}
if (damage > 0)
if (damage >= 0)
{
damage = target->TakeSpecialDamage(inflictor, source, damage, mod);
}