mirror of https://github.com/AxioDL/metaforce.git
Decomp fix for CBSScripted::GetBodyStateTransition
This commit is contained in:
parent
997cf5e0df
commit
6852ab3bfd
|
@ -1408,10 +1408,11 @@ pas::EAnimationState CBSScripted::GetBodyStateTransition(float dt, const CBodyCo
|
|||
if (bc.GetCommandMgr().GetCmd(EBodyStateCmd::Scripted)) {
|
||||
return pas::EAnimationState::Scripted;
|
||||
}
|
||||
if (x4_24_loopAnim && bc.GetCommandMgr().GetCmd(EBodyStateCmd::ExitState)) {
|
||||
if (x4_24_loopAnim) {
|
||||
if (bc.GetCommandMgr().GetCmd(EBodyStateCmd::ExitState)) {
|
||||
return pas::EAnimationState::Locomotion;
|
||||
}
|
||||
if (bc.IsAnimationOver()) {
|
||||
} else if (bc.IsAnimationOver()) {
|
||||
return pas::EAnimationState::Locomotion;
|
||||
}
|
||||
return pas::EAnimationState::Invalid;
|
||||
|
|
Loading…
Reference in New Issue