Exhumed: fix stupid input scaling bug

This commit is contained in:
Richard C. Gobeille 2020-04-14 20:57:05 -07:00 committed by Christoph Oelckers
parent 1c79e6e17c
commit 98f4bac708

View file

@ -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);