mirror of
https://github.com/DrBeef/Raze.git
synced 2025-01-31 21:20:39 +00:00
- buildutils.h: Replace FSin()
from Exhumed with bsinf()
/bcosf()
.
This commit is contained in:
parent
85bb248309
commit
8aa7051f78
2 changed files with 1 additions and 6 deletions
|
@ -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];
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue