Fixed compiler error with libc 2.23.

This commit is contained in:
leo
2016-08-10 22:29:59 +00:00
parent 6d483252c5
commit 4a4c3ff02c
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -871,7 +871,7 @@ void lcCamera::Orbit(float DistanceX, float DistanceY, const lcVector3& CenterPo
lcVector3 FrontVector(mPosition - mTargetPosition);
lcVector3 Z(lcNormalize(lcVector3(FrontVector[0], FrontVector[1], 0)));
if (isnan(Z[0]) || isnan(Z[1]))
if (qIsNaN(Z[0]) || qIsNaN(Z[1]))
Z = lcNormalize(lcVector3(mUpVector[0], mUpVector[1], 0));
if (mUpVector[2] < 0)