mirror of https://github.com/skeeto/pixelcity.git
Added a missing 'f', which flagged warnings on some compilers.
This commit is contained in:
parent
7ce3174bbf
commit
0997f49311
2
Math.cpp
2
Math.cpp
|
@ -107,7 +107,7 @@ float MathAngleDifference (float a1, float a2)
|
||||||
|
|
||||||
float result;
|
float result;
|
||||||
|
|
||||||
result = (float)fmod (a1 - a2, 360.0);
|
result = (float)fmod (a1 - a2, 360.0f);
|
||||||
if (result > 180.0)
|
if (result > 180.0)
|
||||||
return result - 360.0F;
|
return result - 360.0F;
|
||||||
if (result < -180.0)
|
if (result < -180.0)
|
||||||
|
|
Loading…
Reference in New Issue