mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 09:11:48 +00:00
Fix pmomz being set to 0 in the wrong place. (P_PlayerAfterThink is after every moving sector has changed its height, while P_MovePlayer is before it...)
This commit is contained in:
parent
96aa11c825
commit
f11fc92fd7
1 changed files with 3 additions and 3 deletions
|
@ -8598,6 +8598,9 @@ static void P_MovePlayer(player_t *player)
|
|||
// Look for Quicksand!
|
||||
if (CheckForQuicksand)
|
||||
P_CheckQuicksand(player);
|
||||
|
||||
if (P_IsObjectOnGround(player->mo))
|
||||
player->mo->pmomz = 0;
|
||||
}
|
||||
|
||||
static void P_DoZoomTube(player_t *player)
|
||||
|
@ -12385,9 +12388,6 @@ void P_PlayerAfterThink(player_t *player)
|
|||
player->mo->flags |= MF_NOGRAVITY;
|
||||
}
|
||||
|
||||
if (P_IsObjectOnGround(player->mo))
|
||||
player->mo->pmomz = 0;
|
||||
|
||||
if (player->followmobj && (player->spectator || player->mo->health <= 0 || player->followmobj->type != player->followitem))
|
||||
{
|
||||
P_RemoveMobj(player->followmobj);
|
||||
|
|
Loading…
Reference in a new issue