Skip to content

Commit

Permalink
Revert restoration of barrel behaviour
Browse files Browse the repository at this point in the history
Since it wasn't the cause of #813.
  • Loading branch information
bradharding committed Oct 23, 2023
1 parent ec63caf commit 1139e43
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/p_inter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2192,6 +2192,9 @@ void P_DamageMobj(mobj_t *target, mobj_t *inflicter, mobj_t *source, int damage,
if (!(flags & (MF_SHOOTABLE | MF_BOUNCES)) && (!corpse || !r_corpses_slide || target->giblevel == 2))
return;

if (type == MT_BARREL && corpse && target == inflicter)
return;

if (flags & MF_SKULLFLY)
{
target->momx = 0;
Expand Down

0 comments on commit 1139e43

Please sign in to comment.