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?
dev-ui
krzys-h 2013-12-26 21:14:36 +01:00
parent 16842b5e83
commit 32c55297c4
1 changed files with 3 additions and 3 deletions

View File

@ -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;