mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-12-01 16:32:17 +00:00
- Fixed: NODAMAGE was not accounted for with pain.
This commit is contained in:
parent
8d34cf15cc
commit
a61559078c
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