From d5d832846e7440a47e5e212d6c7ae44361daec33 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 23 Jul 2013 04:56:49 -0700 Subject: [PATCH] Rename the follow-up upper character state enum --- apps/openmw/mwmechanics/character.cpp | 9 ++------- apps/openmw/mwmechanics/character.hpp | 6 +----- 2 files changed, 3 insertions(+), 12 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 7816860c63..d7cb7cf6c3 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -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; } } diff --git a/apps/openmw/mwmechanics/character.hpp b/apps/openmw/mwmechanics/character.hpp index d30328682b..6af6c16cc9 100644 --- a/apps/openmw/mwmechanics/character.hpp +++ b/apps/openmw/mwmechanics/character.hpp @@ -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