Make WALK animation state work again. TURNLEFT and TURNRIGHT are now rebroken

avinationmerge
Melanie 2011-10-12 07:46:13 +02:00
parent e3effc4974
commit 1d379a9c7b
1 changed files with 6 additions and 12 deletions

View File

@ -404,25 +404,19 @@ TrySetMovementAnimation("STAND");
else if (m_scenePresence.SetAlwaysRun) else if (m_scenePresence.SetAlwaysRun)
return "RUN"; return "RUN";
else else
{ return "WALK";
// Not walking
if (move.Z < 0)
return "CROUCH";
else if (heldTurnLeft)
return "TURNLEFT";
else if (heldTurnRight)
return "TURNRIGHT";
else
return "WALK";
}
} }
// rm for jumping else // rm for jumping else
else if (!m_jumping) // add for jumping else if (!m_jumping) // add for jumping
{ {
m_falling = false; // Add for falling m_falling = false; // Add for falling
// Not walking // Not walking
if (move.Z < 0f) if (move.Z < 0)
return "CROUCH"; return "CROUCH";
else if (heldTurnLeft)
return "TURNLEFT";
else if (heldTurnRight)
return "TURNRIGHT";
else else
return "STAND"; return "STAND";
} }