- Fix typo in menu and clean up leftover variable in Exhumed's doPlayerCameraEffects().

This commit is contained in:
Mitchell Richters 2023-04-23 10:20:10 +10:00
parent 175f858047
commit 83365a9a14
2 changed files with 2 additions and 3 deletions

View file

@ -1560,7 +1560,6 @@ static void doPlayerGravity(DExhumedActor* const pPlayerActor)
static void doPlayerCameraEffects(Player* const pPlayer, const double nDestVertPan)
{
const auto pPlayerActor = pPlayer->pActor;
const auto pInput = &pPlayer->input;
const auto nUnderwater = !!(pPlayerActor->sector()->Flag & kSectUnderwater);
constexpr auto maxVel = 15.25;
@ -1568,7 +1567,7 @@ static void doPlayerCameraEffects(Player* const pPlayer, const double nDestVertP
doPlayerVertPanning(pPlayer, nDestVertPan * cl_slopetilting);
// Roll tilting effect, either console or Quake-style.
pPlayer->Angles.doViewTilting(pInput, pPlayerActor->vel.XY(), maxVel, nUnderwater);
pPlayer->Angles.doViewTilting(&pPlayer->input, pPlayerActor->vel.XY(), maxVel, nUnderwater);
// Update Z bobbing.
if (cl_viewbob)

View file

@ -1098,7 +1098,7 @@ OptionValue "ViewTilting"
0, "$OPTVAL_OFF"
1, "$DSPLYMNU_VIEWTILTTURN"
2, "$DSPLYMNU_VIEWTILTSTRAFE"
2, "$DSPLYMNU_VIEWTILTMOVEMENT"
3, "$DSPLYMNU_VIEWTILTMOVEMENT"
}
OptionMenu "VideoOptions" protected