Fixed compiler error with libc 2.23.
This commit is contained in:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user