From 32c55297c4a2cdec553ea6319b36eff0cf7302b6 Mon Sep 17 00:00:00 2001 From: krzys-h Date: Thu, 26 Dec 2013 21:14:36 +0100 Subject: Fix for building physics.cpp on some systems Why is it working on my local machine but it's crashing on MXE on my server? --- src/physics/physics.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/physics') diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp index e20e726..85dd3a2 100644 --- a/src/physics/physics.cpp +++ b/src/physics/physics.cpp @@ -786,9 +786,9 @@ void CPhysics::MotorUpdate(float aTime, float rTime) type = m_object->GetType(); - if(isnan(m_motorSpeed.x)) m_motorSpeed.x = 0.f; - if(isnan(m_motorSpeed.y)) m_motorSpeed.y = 0.f; - if(isnan(m_motorSpeed.z)) m_motorSpeed.z = 0.f; + if(std::isnan(m_motorSpeed.x)) m_motorSpeed.x = 0.f; + if(std::isnan(m_motorSpeed.y)) m_motorSpeed.y = 0.f; + if(std::isnan(m_motorSpeed.z)) m_motorSpeed.z = 0.f; motorSpeed = m_motorSpeed; -- cgit v1.2.3-1-g7c22