SW: 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 c5e4c9631d
commit 1c79e6e17c

View file

@ -3219,7 +3219,7 @@ void getinput(int const playerNum)
else else
{ {
input.q16avel = fix16_sadd(input.q16avel, fix16_sdiv(fix16_from_int(info.mousex), fix16_from_int(32))); input.q16avel = fix16_sadd(input.q16avel, fix16_sdiv(fix16_from_int(info.mousex), fix16_from_int(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) if (mouseaim)