mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
- fixed: P_RailAttack must send DMG_PLAYERATTACK if the attack originates from a player.
This commit is contained in:
parent
6db355a947
commit
dd8963142f
1 changed files with 2 additions and 1 deletions
|
@ -5136,7 +5136,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