1
0
mirror of https://gitlab.com/OpenMW/openmw.git synced 2025-02-21 18:40:01 +00:00

CLEANUP(character.cpp): Replace usages of biped function with isBiped var

This commit is contained in:
Dave Corley 2024-06-29 22:53:38 -05:00
parent 33cd654bf5
commit cac5ae34a5

View File

@ -2287,7 +2287,7 @@ namespace MWMechanics
// It seems only bipedal actors use turning animations.
// Also do not use turning animations in the first-person view and when sneaking.
if (!sneak && !isFirstPersonPlayer && mPtr.getClass().isBipedal(mPtr))
if (!sneak && !isFirstPersonPlayer && isBiped)
{
if (effectiveRotation > rotationThreshold)
movestate = inwater ? CharState_SwimTurnRight : CharState_TurnRight;
@ -2331,7 +2331,7 @@ namespace MWMechanics
}
else
{
if (mPtr.getClass().isBipedal(mPtr))
if (isBiped)
{
if (mTurnAnimationThreshold > 0)
mTurnAnimationThreshold -= duration;