mirror of https://github.com/AxioDL/metaforce.git
CBSNewFlyerLocomotion: Fix strafe type calculation in UpdateLocomotionAnimation
This commit is contained in:
parent
3314c6003a
commit
8b35ff3906
|
@ -2139,7 +2139,7 @@ float CBSNewFlyerLocomotion::UpdateLocomotionAnimation(float dt, float velMag, C
|
||||||
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);
|
||||||
strafeType = RunStrafes[strafeKey];
|
strafeType = RunStrafes[strafeKey];
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue