Skip to content

Commit

Permalink
Fix gen crusher walkover in mbf21
Browse files Browse the repository at this point in the history
  • Loading branch information
kraflab committed Apr 7, 2021
1 parent 8920bfe commit 76776f7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions prboom2/src/p_spec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1374,6 +1374,17 @@ void P_CrossSpecialLine(line_t *line, int side, mobj_t *thing, dboolean bossacti
return;
linefunc = EV_DoGenStairs;
}
else if (mbf21 && (unsigned)line->special >= GenCrusherBase)
{
// haleyjd 06/09/09: This was completely forgotten in BOOM, disabling
// all generalized walk-over crusher types!
if (!thing->player && !bossaction)
if (!(line->special & StairMonster))
return; // monsters disallowed
if (!comperr(comperr_zerotag) && !line->tag) //e6y //jff 2/27/98 all walk generalized types require tag
return;
linefunc = EV_DoGenCrusher;
}

if (linefunc) // if it was a valid generalized type
switch((line->special & TriggerType) >> TriggerTypeShift)
Expand Down

0 comments on commit 76776f7

Please sign in to comment.