Fix excessive forward motion and flailing while descending a slope, prevent adding motion while falling from flying.

This commit is contained in:
Kitto Flora
2010-11-11 04:49:47 +00:00
parent ccfbce3176
commit 9462a1861b
2 changed files with 17 additions and 3 deletions

View File

@@ -248,7 +248,7 @@ TrySetMovementAnimation("STAND");
m_animTickFall = Environment.TickCount;
}
// else if (!jumping && fallElapsed > FALL_DELAY)
else if (!m_jumping && (fallElapsed > FALL_DELAY) && (fallVelocity < -3.0f) ) // add for falling and jumping
else if (!m_jumping && (fallElapsed > FALL_DELAY) && (fallVelocity < -3.0f) && (m_scenePresence.m_wasFlying)) // add for falling and jumping
{
// Falling long enough to trigger the animation
//Console.WriteLine("FALLDOWN"); //##