From 76776f721b5d1d8a1a0ae95daab525cf8183ce44 Mon Sep 17 00:00:00 2001 From: kraflab Date: Wed, 7 Apr 2021 17:16:42 +0200 Subject: [PATCH] Fix gen crusher walkover in mbf21 --- prboom2/src/p_spec.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/prboom2/src/p_spec.c b/prboom2/src/p_spec.c index 0247dd1ad..c944ae530 100644 --- a/prboom2/src/p_spec.c +++ b/prboom2/src/p_spec.c @@ -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)