From 99c1f8dba57b1a36d2ccad7aa297e8537f5ca7c9 Mon Sep 17 00:00:00 2001 From: James R Date: Thu, 15 Oct 2020 15:53:44 -0700 Subject: [PATCH] Move higher --- src/p_map.c | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/p_map.c b/src/p_map.c index 3b367340e..10f048e77 100644 --- a/src/p_map.c +++ b/src/p_map.c @@ -1818,6 +1818,16 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y) tmfloorstep = 0; tmceilingstep = 0; + if (thingtop < thing->ceilingz) + { + thing->ceilingdrop = 0; + } + + if (thing->z > thing->floorz) + { + thing->floordrop = 0; + } + // Check list of fake floors and see if tmfloorz/tmceilingz need to be altered. if (newsubsec->sector->ffloors) { @@ -2035,16 +2045,6 @@ boolean P_CheckPosition(mobj_t *thing, fixed_t x, fixed_t y) if (!P_BlockLinesIterator(bx, by, PIT_CheckLine)) blockval = false; - if (thingtop < thing->ceilingz) - { - thing->ceilingdrop = 0; - } - - if (thing->z > thing->floorz) - { - thing->floordrop = 0; - } - return blockval; }