mirror of https://github.com/AxioDL/metaforce.git
CBSBiPedLocomotion: Fix strafe type calculation
This commit is contained in:
parent
8b35ff3906
commit
daad01d129
|
@ -2014,7 +2014,7 @@ float CBSBiPedLocomotion::UpdateStrafe(float vel, CBodyController& bc, pas::ELoc
|
||||||
maxComp = i;
|
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 pas::ELocomotionAnim strafeType = Strafes[strafeKey];
|
||||||
const float rate = vel * GetLocomotionSpeed(x4_locomotionType, strafeType);
|
const float rate = vel * GetLocomotionSpeed(x4_locomotionType, strafeType);
|
||||||
if (anim != strafeType) {
|
if (anim != strafeType) {
|
||||||
|
|
Loading…
Reference in New Issue