From 10a6515b9ae746a6d3ddb3cae50a717ec46cb2cc Mon Sep 17 00:00:00 2001 From: Christoph Oelckers Date: Tue, 11 May 2021 00:12:03 +0200 Subject: [PATCH] - Exhumed: Fixed weapon swaying intensity, introduced by e76f63e2c0d32af278104e391e8d2df119598e2a 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! --- source/games/exhumed/src/gun.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/games/exhumed/src/gun.cpp b/source/games/exhumed/src/gun.cpp index c44154707..6264b21df 100644 --- a/source/games/exhumed/src/gun.cpp +++ b/source/games/exhumed/src/gun.cpp @@ -969,7 +969,7 @@ void DrawWeapons(double smooth) if (cl_hudinterpolation) { 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 {