2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-07-05 07:55:52 +00:00

CBSBiPedLocomotion: Fix strafe type calculation

This commit is contained in:
Luke Street 2020-09-16 01:49:53 -04:00
parent 8b35ff3906
commit daad01d129

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) {