From 7a181400b62951e7c9e247b2f4ee2daed129ba34 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Tue, 3 Nov 2020 19:30:15 +1100 Subject: [PATCH] - WHaven: Enable unsynchronised input. --- source/games/whaven/src/input.cpp | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/source/games/whaven/src/input.cpp b/source/games/whaven/src/input.cpp index 74ba9f8a8..c21e218dc 100644 --- a/source/games/whaven/src/input.cpp +++ b/source/games/whaven/src/input.cpp @@ -150,19 +150,15 @@ void GameInterface::GetInput(InputPacket* packet, ControlInfo* const hidInput) processMovement(&input, &localInput, hidInput, scaleAdjust); } - /* if (!cl_syncinput) { - auto plr = &player[myconnectindex]; - PlayerAngle ang; - applylook(&ang, input.avel, &sPlayerInput[nLocalPlayer].actions, scaleAdjust, eyelevel[nLocalPlayer] > -14080); - sethorizon(&pPlayer->horizon.horiz, input.horz, &sPlayerInput[nLocalPlayer].actions, scaleAdjust); + applylook(&plr.angle, input.avel, &plr.plInput.actions, scaleAdjust, plr.plInput.actions & SB_CROUCH); + sethorizon(&plr.horizon.horiz, input.horz, &plr.plInput.actions, scaleAdjust); - pPlayer->angle.processhelpers(scaleAdjust); - pPlayer->horizon.processhelpers(scaleAdjust); - UpdatePlayerSpriteAngle(pPlayer); + plr.angle.processhelpers(scaleAdjust); + plr.horizon.processhelpers(scaleAdjust); + UpdatePlayerSpriteAngle(plr); } - */ if (packet) {