1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2025-01-21 09:53:52 +00:00

Shorten diff

This commit is contained in:
unknown 2022-07-24 20:43:05 +02:00
parent 4e65829cec
commit 95a074b8aa

View file

@ -583,9 +583,12 @@ void CharacterController::refreshMovementAnims(CharacterState movement, bool for
MWRender::Animation::BlendMask movemask = MWRender::Animation::BlendMask_All;
if(isRealWeapon(mWeaponType) || mPtr.getClass().isBipedal(mPtr))
{
std::string weapShortGroup = getWeaponShortGroup(mWeaponType);
// Non-biped creatures don't use spellcasting-specific movement animations.
if(!isRealWeapon(mWeaponType) && !mPtr.getClass().isBipedal(mPtr))
weapShortGroup.clear();
if (swimpos == std::string::npos && !weapShortGroup.empty())
{
std::string weapMovementAnimName;
@ -600,7 +603,6 @@ void CharacterController::refreshMovementAnims(CharacterState movement, bool for
movementAnimName = weapMovementAnimName;
}
}
if (!mAnimation->hasAnimation(movementAnimName))
{