mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-24 17:52:29 +00:00
- Fix typo in menu and clean up leftover variable in Exhumed's doPlayerCameraEffects()
.
This commit is contained in:
parent
175f858047
commit
83365a9a14
2 changed files with 2 additions and 3 deletions
|
@ -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)
|
||||
|
|
|
@ -1098,7 +1098,7 @@ OptionValue "ViewTilting"
|
|||
0, "$OPTVAL_OFF"
|
||||
1, "$DSPLYMNU_VIEWTILTTURN"
|
||||
2, "$DSPLYMNU_VIEWTILTSTRAFE"
|
||||
2, "$DSPLYMNU_VIEWTILTMOVEMENT"
|
||||
3, "$DSPLYMNU_VIEWTILTMOVEMENT"
|
||||
}
|
||||
|
||||
OptionMenu "VideoOptions" protected
|
||||
|
|
Loading…
Reference in a new issue