Fix for #71 - infinite energy

dev-ui
krzys-h 2013-12-26 20:37:39 +01:00
parent 3eec21895e
commit 07901341a6
1 changed files with 4 additions and 0 deletions

View File

@ -786,6 +786,10 @@ 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;
motorSpeed = m_motorSpeed;
if ( type == OBJECT_MOTHER ||