CBodyState: Return 1.0f directly in UpdateLocomotionAnimation()

Same behavior, but less verbose.
This commit is contained in:
Lioncash 2020-04-05 03:24:53 -04:00
parent 71e3fb1817
commit 39e8ee9a80
1 changed files with 1 additions and 3 deletions

View File

@ -2035,8 +2035,6 @@ float CBSBiPedLocomotion::UpdateStrafe(float vel, CBodyController& bc, pas::ELoc
}
float CBSBiPedLocomotion::UpdateLocomotionAnimation(float dt, float velMag, CBodyController& bc, bool init) {
constexpr float ret = 1.f;
if (init || x3c8_primeTime >= 0.2f) {
const auto anim = init ? pas::ELocomotionAnim::Invalid : x3c4_anim;
const float maxSpeed = velMag * GetLocomotionSpeed(x4_locomotionType, pas::ELocomotionAnim::Run);
@ -2065,7 +2063,7 @@ float CBSBiPedLocomotion::UpdateLocomotionAnimation(float dt, float velMag, CBod
}
}
return ret;
return 1.0f;
}
bool CBSBiPedLocomotion::IsStrafing(const CBodyController& bc) const {