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

CBodyState: Always initialize x3c8_primeTime

Provides a deterministic consistent state upon construction
This commit is contained in:
Lioncash 2020-04-07 12:55:38 -04:00
parent 45dca4a25b
commit ce710a94f6

View File

@ -362,7 +362,7 @@ class CBSBiPedLocomotion : public CBSLocomotion {
protected:
rstl::reserved_vector<rstl::reserved_vector<std::pair<s32, float>, 8>, 14> x8_anims;
pas::ELocomotionAnim x3c4_anim = pas::ELocomotionAnim::Invalid;
float x3c8_primeTime;
float x3c8_primeTime = 0.0f;
float UpdateRun(float vel, CBodyController& bc, pas::ELocomotionAnim anim);
float UpdateWalk(float vel, CBodyController& bc, pas::ELocomotionAnim anim);
float UpdateStrafe(float vel, CBodyController& bc, pas::ELocomotionAnim anim);