diff --git a/src/p_mobj.c b/src/p_mobj.c index 3c3bbd19c..218112213 100644 --- a/src/p_mobj.c +++ b/src/p_mobj.c @@ -494,11 +494,6 @@ static void P_ZMovement(mobj_t *mo) return; } - if ((mo->flags2 & MF2_FOOTCLIP) && P_IsInLiquid(mo)) - mo->flags2 |= MF2_FEETARECLIPPED; - else - mo->flags2 &= ~MF2_FEETARECLIPPED; - // hit the floor if (flags & MF_SKULLFLY) mo->momz = -mo->momz; // the skull slammed into something @@ -553,6 +548,11 @@ static void P_ZMovement(mobj_t *mo) mo->momz -= GRAVITY; } + if ((mo->flags2 & MF2_FOOTCLIP) && P_IsInLiquid(mo)) + mo->flags2 |= MF2_FEETARECLIPPED; + else + mo->flags2 &= ~MF2_FEETARECLIPPED; + if (mo->z + mo->height > mo->ceilingz) { if (flags & MF_SKULLFLY)