Make sure to play IdleSwim when the character is swimming (Bug #2696)

c++11
scrawl 10 years ago
parent 81a4a6da6b
commit 6e5f3339ad

@ -1768,7 +1768,7 @@ void CharacterController::update(float duration)
if(movestate != CharState_None)
clearAnimQueue();
if(mAnimQueue.empty())
if(mAnimQueue.empty() || inwater || sneak)
{
idlestate = (inwater ? CharState_IdleSwim : (sneak ? CharState_IdleSneak : CharState_Idle));
}

Loading…
Cancel
Save