mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-26 13:51:35 +00:00
- fixed: P_RailAttack must send DMG_PLAYERATTACK if the attack originates from a player.
This commit is contained in:
parent
84f3048242
commit
aa1365749b
1 changed files with 2 additions and 1 deletions
|
@ -5135,7 +5135,8 @@ void P_RailAttack(FRailParams *p)
|
|||
if (puffDefaults->flags3 & MF3_FOILINVUL) dmgFlagPass |= DMG_FOILINVUL;
|
||||
if (puffDefaults->flags7 & MF7_FOILBUDDHA) dmgFlagPass |= DMG_FOILBUDDHA;
|
||||
}
|
||||
int newdam = P_DamageMobj(hitactor, thepuff ? thepuff : source, source, p->damage, damagetype, dmgFlagPass|DMG_USEANGLE, hitangle);
|
||||
// [RK] If the attack source is a player, send the DMG_PLAYERATTACK flag.
|
||||
int newdam = P_DamageMobj(hitactor, thepuff ? thepuff : source, source, p->damage, damagetype, dmgFlagPass | DMG_USEANGLE | (source->player ? DMG_PLAYERATTACK : 0), hitangle);
|
||||
|
||||
if (bleed)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue