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
parent
16842b5e83
commit
32c55297c4
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue