Commit d7d497f0 authored by monstrobishi's avatar monstrobishi

- Fixed compile error in getHorizontalAngle() (Ambiguous method call to atan2).

git-svn-id: svn://svn.code.sf.net/p/irrlicht/code/trunk@2882 dfc29bdd-3216-0410-991c-e03cc46cb475
parent 9cda111b
...@@ -285,7 +285,7 @@ namespace core ...@@ -285,7 +285,7 @@ namespace core
const f64 z1 = core::squareroot(X*X + Z*Z); const f64 z1 = core::squareroot(X*X + Z*Z);
angle.X = (T)(atan2(z1, Y) * RADTODEG64 - 90.0); angle.X = (T)(atan2((f64)z1, (f64)Y) * RADTODEG64 - 90.0);
if (angle.X < 0) if (angle.X < 0)
angle.X += 360; angle.X += 360;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment