summaryrefslogtreecommitdiffstats
path: root/src/physics
diff options
context:
space:
mode:
authorkrzys-h <krzys_h@interia.pl>2013-12-26 21:14:36 +0100
committerkrzys-h <krzys_h@interia.pl>2013-12-26 21:14:36 +0100
commit32c55297c4a2cdec553ea6319b36eff0cf7302b6 (patch)
tree1fca7fd8c5d22362d0259795937ea92a3680625f /src/physics
parent16842b5e837e26f27962a36cd5f29f79ab588505 (diff)
downloadcolobot-32c55297c4a2cdec553ea6319b36eff0cf7302b6.tar.gz
colobot-32c55297c4a2cdec553ea6319b36eff0cf7302b6.tar.bz2
colobot-32c55297c4a2cdec553ea6319b36eff0cf7302b6.zip
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?
Diffstat (limited to 'src/physics')
-rw-r--r--src/physics/physics.cpp6
1 files changed, 3 insertions, 3 deletions
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;