- Exhumed: Fixed weapon swaying intensity, introduced by e76f63e2c0

Note that shifting right by 17 bits vs. shifting right by 16 bits and then multiplying the entire result by 0.5 is not the same here!
This commit is contained in:
Christoph Oelckers 2021-05-11 00:12:03 +02:00
parent c6991add46
commit 10a6515b9a

View file

@ -969,7 +969,7 @@ void DrawWeapons(double smooth)
if (cl_hudinterpolation) if (cl_hudinterpolation)
{ {
nBobAngle = interpolatedangle(buildang(obobangle), buildang(bobangle), smooth).asbuildf(); nBobAngle = interpolatedangle(buildang(obobangle), buildang(bobangle), smooth).asbuildf();
nVal = interpolatedvaluef(ototalvel[nLocalPlayer], totalvel[nLocalPlayer], smooth, 17); nVal = interpolatedvaluef(ototalvel[nLocalPlayer], totalvel[nLocalPlayer], smooth, 16) * 0.5;
} }
else else
{ {