CBSBiPedLocomotion: Fix strafe type calculation

This commit is contained in:
Luke Street 2020-09-16 01:49:53 -04:00
parent 8b35ff3906
commit daad01d129
1 changed files with 1 additions and 1 deletions

View File

@ -2014,7 +2014,7 @@ float CBSBiPedLocomotion::UpdateStrafe(float vel, CBodyController& bc, pas::ELoc
maxComp = i;
}
}
const int strafeKey = maxComp * 2 + localVec[maxComp] > 0.f ? 0 : 1;
const int strafeKey = maxComp * 2 + (localVec[maxComp] > 0.f ? 0 : 1);
const pas::ELocomotionAnim strafeType = Strafes[strafeKey];
const float rate = vel * GetLocomotionSpeed(x4_locomotionType, strafeType);
if (anim != strafeType) {