From cac5ae34a5e5471ccacbb8d8b19132c4ed7e3d11 Mon Sep 17 00:00:00 2001 From: Dave Corley Date: Sat, 29 Jun 2024 22:53:38 -0500 Subject: [PATCH] CLEANUP(character.cpp): Replace usages of biped function with isBiped var --- apps/openmw/mwmechanics/character.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/openmw/mwmechanics/character.cpp b/apps/openmw/mwmechanics/character.cpp index 8c048550b4..27c3cff6b8 100644 --- a/apps/openmw/mwmechanics/character.cpp +++ b/apps/openmw/mwmechanics/character.cpp @@ -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;