From 907c2bbe1e7dfadb683a535d82aa73d662575dc5 Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Fri, 27 Dec 2019 17:35:13 +0100 Subject: [PATCH] - fixed keyboard turning. Why did it only apply the chance each 4th call instead of doing it smoothly??? --- source/exhumed/src/player.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/source/exhumed/src/player.cpp b/source/exhumed/src/player.cpp index a2b466188..f099d9026 100644 --- a/source/exhumed/src/player.cpp +++ b/source/exhumed/src/player.cpp @@ -170,7 +170,7 @@ void PlayerInterruptKeys() } // JBF: Run key behaviour is selectable - int const playerRunning = false;// G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run)); + int const playerRunning = G_CheckAutorun(buttonMap.ButtonDown(gamefunc_Run)); int const turnAmount = playerRunning ? 12 : 8; int const keyMove = playerRunning ? 12 : 6; constexpr int const analogTurnAmount = 12; @@ -248,8 +248,9 @@ void PlayerInterruptKeys() turn = 0; } - if ((counter++) % 4 == 0) - q16avel += fix16_from_int(turn<<2); + //if ((counter++) % 4 == 0) // what was this for??? + q16avel += fix16_from_int(turn); + } if (buttonMap.ButtonDown(gamefunc_Strafe_Left))