Decomp fix for CBSScripted::GetBodyStateTransition

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-28 14:22:58 +03:00
parent 997cf5e0df
commit 6852ab3bfd
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 5 additions and 4 deletions

View File

@ -1408,10 +1408,11 @@ pas::EAnimationState CBSScripted::GetBodyStateTransition(float dt, const CBodyCo
if (bc.GetCommandMgr().GetCmd(EBodyStateCmd::Scripted)) { if (bc.GetCommandMgr().GetCmd(EBodyStateCmd::Scripted)) {
return pas::EAnimationState::Scripted; return pas::EAnimationState::Scripted;
} }
if (x4_24_loopAnim && bc.GetCommandMgr().GetCmd(EBodyStateCmd::ExitState)) { if (x4_24_loopAnim) {
return pas::EAnimationState::Locomotion; if (bc.GetCommandMgr().GetCmd(EBodyStateCmd::ExitState)) {
} return pas::EAnimationState::Locomotion;
if (bc.IsAnimationOver()) { }
} else if (bc.IsAnimationOver()) {
return pas::EAnimationState::Locomotion; return pas::EAnimationState::Locomotion;
} }
return pas::EAnimationState::Invalid; return pas::EAnimationState::Invalid;