mirror of
https://github.com/ZDoom/Raze.git
synced 2025-03-11 03:01:12 +00:00
- Change internals of bsinf()
and bcosf()
to use BAM sine functions instead of coverting build angle into radians, then into BAM.
This commit is contained in:
parent
4324f923bc
commit
b9ee6c327d
1 changed files with 2 additions and 2 deletions
|
@ -83,7 +83,7 @@ inline int bsin(const int ang, int shift = 0)
|
|||
}
|
||||
inline double bsinf(const double ang, const int shift = 0)
|
||||
{
|
||||
return g_sin(ang * BAngRadian) * sinscale(shift);
|
||||
return g_sinbam(ang * BAMUNIT) * sinscale(shift);
|
||||
}
|
||||
|
||||
|
||||
|
@ -99,7 +99,7 @@ inline int bcos(const int ang, int shift = 0)
|
|||
}
|
||||
inline double bcosf(const double ang, const int shift = 0)
|
||||
{
|
||||
return g_cos(ang * BAngRadian) * sinscale(shift);
|
||||
return g_cosbam(ang * BAMUNIT) * sinscale(shift);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue