- Exhumed: Fix bad jump setup from c252b19e9a.

This commit is contained in:
Mitchell Richters 2023-04-24 23:27:02 +10:00
parent fd1c3dffe8
commit 6004a9fb5a

View file

@ -1242,15 +1242,15 @@ static void updatePlayerAction(Player* const pPlayer, const bool bUnderwater)
if (velZ < 0)
{
pPlayerActor->vel.Z = velZ;
if (bUnderwater)
{
pPlayerActor->vel.Z = velZ;
nextAction = 10;
}
else if (pPlayer->bTouchFloor && (pPlayerActor->nAction < 6 || pPlayerActor->nAction > 8))
{
pPlayer->bJumping = true;
pPlayerActor->vel.Z = velZ;
nextAction = 3;
}
}