- Fixed: NODAMAGE was not accounted for with pain.

This commit is contained in:
Major Cooke 2019-01-02 07:31:40 -06:00 committed by Rachael Alexanderson
parent 8d34cf15cc
commit a61559078c

View file

@ -797,7 +797,8 @@ static inline bool MustForcePain(AActor *target, AActor *inflictor)
static inline bool isFakePain(AActor *target, AActor *inflictor, int damage) 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. // [MC] Completely ripped out of DamageMobj to make it less messy.