Remove pmomz from players who are on ground.

Assume that every frame the player is on the ground, their pmomz will
be re-set properly if the floor is moving, therefore if the platform
STOPS, we need this to set it to 0.
This commit is contained in:
Yukita Mayako 2015-06-09 06:59:34 -04:00
parent c16516ef0d
commit 9a9025b1ee

View file

@ -9391,4 +9391,7 @@ void P_PlayerAfterThink(player_t *player)
player->mo->flags2 |= MF2_DONTDRAW;
player->mo->flags |= MF_NOGRAVITY;
}
if (P_IsObjectOnGround(player->mo))
player->mo->pmomz = 0;
}