mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-02-21 22:09:39 +00:00
Make sure to play IdleSwim when the character is swimming (Bug #2696)
This commit is contained in:
parent
81a4a6da6b
commit
6e5f3339ad
1 changed files with 1 additions and 1 deletions
|
@ -1768,7 +1768,7 @@ void CharacterController::update(float duration)
|
||||||
if(movestate != CharState_None)
|
if(movestate != CharState_None)
|
||||||
clearAnimQueue();
|
clearAnimQueue();
|
||||||
|
|
||||||
if(mAnimQueue.empty())
|
if(mAnimQueue.empty() || inwater || sneak)
|
||||||
{
|
{
|
||||||
idlestate = (inwater ? CharState_IdleSwim : (sneak ? CharState_IdleSneak : CharState_Idle));
|
idlestate = (inwater ? CharState_IdleSwim : (sneak ? CharState_IdleSneak : CharState_Idle));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue