mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2024-12-26 12:21:19 +00:00
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:
parent
c16516ef0d
commit
9a9025b1ee
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue