- buildutils.h: Replace `FSin()` from Exhumed with `bsinf()`/`bcosf()`.

This commit is contained in:
Mitchell Richters 2020-11-22 21:27:02 +11:00 committed by Christoph Oelckers
parent 85bb248309
commit 8aa7051f78
2 changed files with 1 additions and 6 deletions

View File

@ -131,11 +131,6 @@ inline int Sin(int angle)
return sintable[angle & kAngleMask];
}
inline double FSin(double angle)
{
return calcSinTableValue(fmod(angle, kAngleMask + 1));
}
inline int Cos(int angle)
{
return sintable[(angle + 512) & kAngleMask];

View File

@ -967,7 +967,7 @@ void DrawWeapons(double smooth)
if (var_34 == 1)
{
xOffset = ((FSin(nBobAngle + 512) / 256.) * nVal) / 256.;
xOffset = fmulscale8(bcosf(nBobAngle, -8), nVal);
}
}
else