diff --git a/source/games/exhumed/src/player.cpp b/source/games/exhumed/src/player.cpp index c2467da23..1efde5166 100644 --- a/source/games/exhumed/src/player.cpp +++ b/source/games/exhumed/src/player.cpp @@ -1468,8 +1468,8 @@ static void doPlayerPitch(Player* const pPlayer, const double nDestVertPan) pPlayer->pActor->spr.Angles.Pitch += DAngle::fromDeg(pInput->horz); } - pPlayer->Angles.doPitchKeys(pInput); pPlayer->Angles.ViewAngles.Pitch += maphoriz(abs(nVertPan) >= 4 ? Sgn(nVertPan) * 4. : nVertPan * 2.); + pPlayer->Angles.doPitchKeys(pInput); } //--------------------------------------------------------------------------- diff --git a/source/games/sw/src/player.cpp b/source/games/sw/src/player.cpp index 8d0c5bb5d..d991317af 100644 --- a/source/games/sw/src/player.cpp +++ b/source/games/sw/src/player.cpp @@ -2155,9 +2155,8 @@ void DoPlayerMove(PLAYER* pp) pp->actor->spr.Angles.Pitch += DAngle::fromDeg(pp->input.horz); } - pp->Angles.doPitchKeys(&pp->input); - DoPlayerSlopeTilting(pp); + pp->Angles.doPitchKeys(&pp->input); if (pp->insector() && (pp->cursector->extra & SECTFX_DYNAMIC_AREA)) { @@ -2728,9 +2727,8 @@ void DoPlayerMoveVehicle(PLAYER* pp) pp->actor->spr.Angles.Pitch += DAngle::fromDeg(pp->input.horz); } - pp->Angles.doPitchKeys(&pp->input); - DoPlayerSlopeTilting(pp); + pp->Angles.doPitchKeys(&pp->input); DoTankTreads(pp); } @@ -2764,9 +2762,8 @@ void DoPlayerMoveTurret(PLAYER* pp) pp->actor->spr.Angles.Pitch += DAngle::fromDeg(pp->input.horz); } - pp->Angles.doPitchKeys(&pp->input); - DoPlayerSlopeTilting(pp); + pp->Angles.doPitchKeys(&pp->input); } //--------------------------------------------------------------------------- @@ -3362,9 +3359,8 @@ void DoPlayerClimb(PLAYER* pp) pp->actor->spr.Angles.Pitch += DAngle::fromDeg(pp->input.horz); } - pp->Angles.doPitchKeys(&pp->input); - DoPlayerSlopeTilting(pp); + pp->Angles.doPitchKeys(&pp->input); if (FAF_ConnectArea(pp->cursector)) {