This commit is contained in:
James R 2020-10-14 01:19:43 -07:00
parent bc23f582fe
commit b35633bb61

View file

@ -2744,7 +2744,7 @@ boolean P_TryMove(mobj_t *thing, fixed_t x, fixed_t y, boolean allowdropoff)
} }
else if (tmceilingz < thingtop) else if (tmceilingz < thingtop)
{ {
if (tmceilingz - thingtop <= maxstep) if (thingtop - tmceilingz <= maxstep)
{ {
thing->z = ( thing->ceilingz = tmceilingz ) - thing->height; thing->z = ( thing->ceilingz = tmceilingz ) - thing->height;
thing->ceilingrover = tmceilingrover; thing->ceilingrover = tmceilingrover;