mirror of
https://github.com/ZDoom/gzdoom-gles.git
synced 2025-01-19 07:00:52 +00:00
- Fixed: SPECTRAL flag didn't check for DMG_FORCED before aborting DamageMobj.
This commit is contained in:
parent
69f50e2056
commit
7b2b7325ab
1 changed files with 2 additions and 2 deletions
|
@ -1021,8 +1021,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