mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-19 13:18:25 +00:00
missed one error with clang
This commit is contained in:
@@ -25,13 +25,13 @@ void Mth::init()
|
||||
float Mth::sin(float i)
|
||||
{
|
||||
if(_sin == NULL) init(); // 4J - added
|
||||
return _sin[(int) (i * sinScale) & 65535];
|
||||
return _sin[(int)fmodf(i * sinScale, 65536.0f) & 65535];
|
||||
}
|
||||
|
||||
float Mth::cos(float i)
|
||||
{
|
||||
if(_sin == NULL) init(); // 4J - added
|
||||
return _sin[(int) (i * sinScale + 65536 / 4) & 65535];
|
||||
return _sin[(int)fmodf(i * sinScale + 16384.0f, 65536.0f) & 65535];
|
||||
}
|
||||
|
||||
float Mth::sqrt(float x)
|
||||
@@ -169,4 +169,4 @@ double Mth::wrapDegrees(double input)
|
||||
bool Mth::almostEquals( double double1, double double2, double precision)
|
||||
{
|
||||
return (std::abs(double1 - double2) <= precision);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user