- buildutils: Replace calcSinTableValue() use within Exhumed with bsinf()/bcosf().

This commit is contained in:
Mitchell Richters 2020-11-22 21:23:08 +11:00 committed by Christoph Oelckers
parent 5172c43e71
commit 6b66a958d0

View file

@ -962,8 +962,8 @@ void DrawWeapons(double smooth)
{ {
// CHECKME - not & 0x7FF? // CHECKME - not & 0x7FF?
double nBobAngle = obobangle + fmulscale16(((bobangle + 1024 - obobangle) & 2047) - 1024, smooth); double nBobAngle = obobangle + fmulscale16(((bobangle + 1024 - obobangle) & 2047) - 1024, smooth);
double nVal = (ototalvel[nLocalPlayer] + fmulscale16(totalvel[nLocalPlayer] - ototalvel[nLocalPlayer], smooth)) / 2.; double nVal = (ototalvel[nLocalPlayer] + fmulscale16(totalvel[nLocalPlayer] - ototalvel[nLocalPlayer], smooth)) * 0.5;
yOffset = (nVal * (calcSinTableValue(fmod(nBobAngle, 1024)) / 256.)) / 512.; yOffset = fmulscale9(nVal, bsinf(fmod(nBobAngle, 1024.), -8));
if (var_34 == 1) if (var_34 == 1)
{ {