mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 14:51:40 +00:00
- Fixed: SPECTRAL flag didn't check for DMG_FORCED before aborting DamageMobj.
This commit is contained in:
parent
b4424b2d4d
commit
09a5771ad4
1 changed files with 2 additions and 2 deletions
|
@ -1031,8 +1031,8 @@ static int DamageMobj (AActor *target, AActor *inflictor, AActor *source, int da
|
|||
}
|
||||
FName MeansOfDeath = mod;
|
||||
|
||||
// Spectral targets only take damage from spectral projectiles.
|
||||
if (target->flags4 & MF4_SPECTRAL && !telefragDamage)
|
||||
// Spectral targets only take damage from spectral projectiles unless forced or telefragging.
|
||||
if ((target->flags4 & MF4_SPECTRAL) && !(flags & DMG_FORCED) && !telefragDamage)
|
||||
{
|
||||
if (inflictor == NULL || !(inflictor->flags4 & MF4_SPECTRAL))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue