CBSNewFlyerLocomotion: Fix strafe type calculation in UpdateLocomotionAnimation

This commit is contained in:
Luke Street 2020-09-16 01:45:07 -04:00
parent 3314c6003a
commit 8b35ff3906
1 changed files with 1 additions and 1 deletions

View File

@ -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];
} }