diff options
-rw-r--r-- | src/physics/physics.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/physics/physics.cpp b/src/physics/physics.cpp index c84040e..2ab7425 100644 --- a/src/physics/physics.cpp +++ b/src/physics/physics.cpp @@ -983,13 +983,6 @@ void CPhysics::MotorUpdate(float aTime, float rTime) m_cirMotion.motorSpeed.y = 0.0f; } - if ( m_bLand && m_fallingHeight != 0.0f ) // if fell - { - float force = m_fallingHeight * m_fallDamageFraction; - m_object->ExploObject(EXPLO_BOUM, force); - m_fallingHeight = 0.0f; - } - if ( m_type == TYPE_FLYING && m_bLand ) // flying on the ground? { if ( type == OBJECT_HUMAN || @@ -1621,6 +1614,13 @@ bool CPhysics::EventFrame(const Event &event) MotorParticle(m_time, event.rTime); SoundMotor(event.rTime); + if ( m_bLand && m_fallingHeight != 0.0f ) // if fell + { + float force = m_fallingHeight * m_fallDamageFraction; + m_object->ExploObject(EXPLO_BOUM, force); + m_fallingHeight = 0.0f; + } + m_bForceUpdate = false; return true; |