mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-04 01:41:42 +00:00
- DoSpecialDamage was formerly called for any damage value, removed check for 'damage > 0' to restore original behavior.
This commit is contained in:
parent
375c0ac736
commit
c78b9235a8
1 changed files with 1 additions and 2 deletions
|
@ -1065,8 +1065,7 @@ int P_DamageMobj (AActor *target, AActor *inflictor, AActor *source, int damage,
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (damage > 0)
|
damage = inflictor->DoSpecialDamage (target, damage, mod);
|
||||||
damage = inflictor->DoSpecialDamage (target, damage, mod);
|
|
||||||
|
|
||||||
if ((damage == -1) && (target->player == NULL)) //This isn't meant for the player.
|
if ((damage == -1) && (target->player == NULL)) //This isn't meant for the player.
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue