From b21a4d58802b8b4710bda082ad3fb32a4645b649 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Tue, 14 Apr 2020 20:57:05 -0700 Subject: [PATCH] Duke3d: fix stupid input scaling bug --- source/duke3d/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/duke3d/src/player.cpp b/source/duke3d/src/player.cpp index 6b151eef3..a7b07038f 100644 --- a/source/duke3d/src/player.cpp +++ b/source/duke3d/src/player.cpp @@ -3113,7 +3113,7 @@ void P_GetInput(int const playerNum) else { input.q16avel = fix16_sadd(input.q16avel, fix16_sdiv(fix16_from_int(info.mousex), F16(32))); - input.q16avel = fix16_sadd(input.q16avel, fix16_from_int(info.dyaw / analogExtent * (analogTurnAmount << 1))); + input.q16avel = fix16_sadd(input.q16avel, fix16_from_int(info.dyaw * analogTurnAmount / (analogExtent >> 1))); } if (mouseaim)