1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-01-10 06:39:49 +00:00

Rename the follow-up upper character state enum

This commit is contained in:
Chris Robinson 2013-07-23 04:56:49 -07:00
parent 537d5c4934
commit d5d832846e
2 changed files with 3 additions and 12 deletions

View File

@ -448,7 +448,7 @@ bool CharacterController::updateNpcState()
if(!animPlaying)
{
if(mUpperBodyState == UpperCharState_EquipingWeap ||
mUpperBodyState == UpperCharState_LargeFollowStartToLargeFollowStop)
mUpperBodyState == UpperCharState_FollowStartToFollowStop)
mUpperBodyState = UpperCharState_WeapEquiped;
else if(mUpperBodyState == UpperCharState_UnEquipingWeap)
mUpperBodyState = UpperCharState_Nothing;
@ -480,12 +480,7 @@ bool CharacterController::updateNpcState()
MWRender::Animation::Group_UpperBody, true,
weapSpeed, mAttackType+" large follow start", mAttackType+" large follow stop",
0.0f, 0);
mUpperBodyState = UpperCharState_LargeFollowStartToLargeFollowStop;
}
else if(mUpperBodyState == UpperCharState_LargeFollowStartToLargeFollowStop)
{
mAnimation->disable(mCurrentWeapon);
mUpperBodyState = UpperCharState_WeapEquiped;
mUpperBodyState = UpperCharState_FollowStartToFollowStop;
}
}

View File

@ -104,11 +104,7 @@ enum UpperBodyCharacterState {
UpperCharState_MinAttackToMaxAttack,
UpperCharState_MaxAttackToMinHit,
UpperCharState_MinHitToHit,
UpperCharState_LargeFollowStartToLargeFollowStop,
UpperCharState_MediumFollowStartToMediumFollowStop,
UpperCharState_SmallFollowStartToSmallFollowStop,
UpperCharState_EquipingSpell,
UpperCharState_UnEquipingSpell
UpperCharState_FollowStartToFollowStop
};
class CharacterController