mirror of
https://github.com/ZDoom/qzdoom.git
synced 2025-01-18 23:21:41 +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;
|
FName MeansOfDeath = mod;
|
||||||
|
|
||||||
// Spectral targets only take damage from spectral projectiles.
|
// Spectral targets only take damage from spectral projectiles unless forced or telefragging.
|
||||||
if (target->flags4 & MF4_SPECTRAL && !telefragDamage)
|
if ((target->flags4 & MF4_SPECTRAL) && !(flags & DMG_FORCED) && !telefragDamage)
|
||||||
{
|
{
|
||||||
if (inflictor == NULL || !(inflictor->flags4 & MF4_SPECTRAL))
|
if (inflictor == NULL || !(inflictor->flags4 & MF4_SPECTRAL))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue