mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- Fixed: NODAMAGE was not accounted for with pain.
This commit is contained in:
parent
cb6b5e92ab
commit
8bbbd95dfd
1 changed files with 2 additions and 1 deletions
|
@ -797,7 +797,8 @@ static inline bool MustForcePain(AActor *target, AActor *inflictor)
|
|||
|
||||
static inline bool isFakePain(AActor *target, AActor *inflictor, int damage)
|
||||
{
|
||||
return ((target->flags7 & MF7_ALLOWPAIN && damage > 0) || (inflictor && (inflictor->flags7 & MF7_CAUSEPAIN)));
|
||||
return (((target->flags7 & MF7_ALLOWPAIN || target->flags5 & MF5_NODAMAGE) && damage > 0) ||
|
||||
(inflictor && (inflictor->flags7 & MF7_CAUSEPAIN)));
|
||||
}
|
||||
|
||||
// [MC] Completely ripped out of DamageMobj to make it less messy.
|
||||
|
|
Loading…
Reference in a new issue