1
0
mirror of https://github.com/minetest/minetest.git synced 2024-11-14 22:40:28 +01:00

numeric: Fix clang, broken since d5456da

This commit is contained in:
SmallJoker 2019-02-09 18:33:31 +01:00
parent f5bdc04ab5
commit b7e1bca28c

View File

@ -201,7 +201,7 @@ v3f getPitchYawRollRad(const core::matrix4 &m)
const f32 *M = m.pointer();
f64 a1 = atan2(M[1], M[5]);
f64 c2 = sqrt(M[10]*M[10] + M[8]*M[8]);
f32 c2 = std::sqrt((f64)M[10]*M[10] + (f64)M[8]*M[8]);
f32 a2 = atan2f(-M[9], c2);
f64 c1 = cos(a1);
f64 s1 = sin(a1);