From d338e608413845a3f78dc4cdf82acf671976ceba Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 22 Sep 2020 16:06:12 +1000 Subject: [PATCH] - Exhumed: Hook up crouch action to `applylook()` that was forgotten during initial implementation. --- source/exhumed/src/input.cpp | 2 +- source/exhumed/src/player.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/exhumed/src/input.cpp b/source/exhumed/src/input.cpp index 4504fe808..d8a99829f 100644 --- a/source/exhumed/src/input.cpp +++ b/source/exhumed/src/input.cpp @@ -196,7 +196,7 @@ static void processMovement(ControlInfo* const hidInput) if (!nFreeze) { - applylook(&pPlayer->q16angle, &pPlayer->q16look_ang, &pPlayer->q16rotscrnang, &pPlayer->spin, tempinput.q16avel, &sPlayerInput[nLocalPlayer].actions, scaleAdjust, false); + applylook(&pPlayer->q16angle, &pPlayer->q16look_ang, &pPlayer->q16rotscrnang, &pPlayer->spin, tempinput.q16avel, &sPlayerInput[nLocalPlayer].actions, scaleAdjust, eyelevel[nLocalPlayer] > -14080); sethorizon(&pPlayer->q16horiz, tempinput.q16horz, &sPlayerInput[nLocalPlayer].actions, scaleAdjust); UpdatePlayerSpriteAngle(pPlayer); } diff --git a/source/exhumed/src/player.cpp b/source/exhumed/src/player.cpp index fa2293d4b..26cd14d6f 100644 --- a/source/exhumed/src/player.cpp +++ b/source/exhumed/src/player.cpp @@ -946,7 +946,7 @@ void FuncPlayer(int a, int nDamage, int nRun) if (cl_syncinput) { Player* pPlayer = &PlayerList[nPlayer]; - applylook(&pPlayer->q16angle, &pPlayer->q16look_ang, &pPlayer->q16rotscrnang, &pPlayer->spin, sPlayerInput[nPlayer].nAngle, &sPlayerInput[nLocalPlayer].actions, 1, false); + applylook(&pPlayer->q16angle, &pPlayer->q16look_ang, &pPlayer->q16rotscrnang, &pPlayer->spin, sPlayerInput[nPlayer].nAngle, &sPlayerInput[nLocalPlayer].actions, 1, eyelevel[nLocalPlayer] > -14080); UpdatePlayerSpriteAngle(pPlayer); }