1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-10 03:39:55 +00:00

Don't override animations played with playgroup

This commit is contained in:
Chris Robinson 2013-02-23 01:54:46 -08:00
parent 3ef40676bc
commit f841576bba
2 changed files with 3 additions and 2 deletions

View File

@ -218,7 +218,7 @@ Ogre::Vector3 CharacterController::update(float duration)
// Apply any sideways movement manually
movement.x += vec.x * (speed*duration);
}
else
else if(mAnimQueue.size() == 0)
setState((inwater ? CharState_IdleSwim : CharState_Idle), true);
}
@ -246,7 +246,7 @@ void CharacterController::playGroup(const std::string &groupname, int mode, int
while(count-- > 0)
mAnimQueue.push_back(groupname);
mCurrentGroup = groupname;
mState = CharState_Idle;
mState = CharState_SpecialIdle;
mAnimation->play(mCurrentGroup, ((mode==2) ? "loop start" : "start"), false);
}
else if(mode == 0)

View File

@ -14,6 +14,7 @@ namespace MWMechanics
{
enum CharacterState {
CharState_SpecialIdle,
CharState_Idle,
CharState_Idle2,
CharState_Idle3,