Move higher

This commit is contained in:
James R 2020-10-15 15:53:44 -07:00
parent 4569d9650a
commit 99c1f8dba5

View file

@ -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;
}