mirror of
https://github.com/smartcmd/MinecraftConsoles.git
synced 2026-05-12 04:03:53 +00:00
Get rid of MSVC's __int64
Use either int64_t, uint64_t or long long and unsigned long long, defined as per C++11 standard
This commit is contained in:
parent
d6ec138710
commit
d63f79325f
308 changed files with 5371 additions and 5379 deletions
|
|
@ -34,9 +34,9 @@ double Math::random()
|
|||
//a - a floating-point value to be rounded to a long.
|
||||
//Returns:
|
||||
//the value of the argument rounded to the nearest long value.
|
||||
__int64 Math::round( double d )
|
||||
int64_t Math::round( double d )
|
||||
{
|
||||
return (__int64)floor( d + 0.5 );
|
||||
return (int64_t)floor( d + 0.5 );
|
||||
}
|
||||
|
||||
int Math::_max(int a, int b)
|
||||
|
|
@ -59,7 +59,7 @@ float Math::_min(float a, float b)
|
|||
return a < b ? a : b;
|
||||
}
|
||||
|
||||
float Math::wrapDegrees(float input)
|
||||
float Math::wrapDegrees(float input)
|
||||
{
|
||||
while(input>=360.0f)input-=360.0f;
|
||||
if (input >= 180.0f) input -= 360.0f;
|
||||
|
|
@ -67,7 +67,7 @@ float Math::wrapDegrees(float input)
|
|||
return input;
|
||||
}
|
||||
|
||||
double Math::wrapDegrees(double input)
|
||||
double Math::wrapDegrees(double input)
|
||||
{
|
||||
while(input>=360.0)input-=360.0;
|
||||
if (input >= 180.0) input -= 360.0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue