From 98f4bac70848d9f1708f0a3c802fe4a9f2e50437 Mon Sep 17 00:00:00 2001 From: "Richard C. Gobeille" Date: Tue, 14 Apr 2020 20:57:05 -0700 Subject: [PATCH] Exhumed: fix stupid input scaling bug --- source/exhumed/src/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/exhumed/src/player.cpp b/source/exhumed/src/player.cpp index 8cdb988ef..8a5899607 100644 --- a/source/exhumed/src/player.cpp +++ b/source/exhumed/src/player.cpp @@ -191,7 +191,7 @@ void PlayerInterruptKeys() else { input.nAngle = fix16_sadd(input.nAngle, fix16_sdiv(fix16_from_int(info.mousex), fix16_from_int(32))); - input.nAngle = fix16_sadd(input.nAngle, fix16_from_int(info.dyaw / analogExtent * (analogTurnAmount << 1))); + input.nAngle = fix16_sadd(input.nAngle, fix16_from_int(info.dyaw * analogTurnAmount / (analogExtent >> 1))); } g_MyAimMode = in_mousemode || buttonMap.ButtonDown(gamefunc_Mouse_Aiming);