mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-03-29 22:20:33 +00:00
Make sure to play IdleSwim when the character is swimming (Bug #2696)
This commit is contained in:
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…
x
Reference in New Issue
Block a user