mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-26 05:51:20 +00:00
- cast arguments for fastcos/sinbam
Use xs_Float to ensure proper wraparound which is important here.
This commit is contained in:
parent
a669d3718f
commit
c8296f0d7c
1 changed files with 2 additions and 2 deletions
4
src/common/thirdparty/math/cmath.h
vendored
4
src/common/thirdparty/math/cmath.h
vendored
|
@ -56,12 +56,12 @@ extern FFastTrig fasttrig;
|
|||
|
||||
inline double fastcosbam(double v)
|
||||
{
|
||||
return fasttrig.cos(v);
|
||||
return fasttrig.cos(xs_CRoundToUInt(v));
|
||||
}
|
||||
|
||||
inline double fastsinbam(double v)
|
||||
{
|
||||
return fasttrig.sin(v);
|
||||
return fasttrig.sin(xs_CRoundToUInt(v));
|
||||
}
|
||||
|
||||
inline double fastcosdeg(double v)
|
||||
|
|
Loading…
Reference in a new issue