Decomp fix for CBSFall::Start

This commit is contained in:
Henrique Gemignani Passos Lima 2022-10-28 16:38:55 +03:00
parent 6852ab3bfd
commit c36f478a21
No known key found for this signature in database
GPG Key ID: E224F951761145F8
1 changed files with 1 additions and 1 deletions

View File

@ -209,7 +209,7 @@ pas::EAnimationState CBSDie::UpdateBody(float dt, CBodyController& bc, CStateMan
void CBSFall::Start(CBodyController& bc, CStateManager& mgr) {
const auto* cmd = static_cast<const CBCKnockDownCmd*>(bc.GetCommandMgr().GetCmd(EBodyStateCmd::KnockDown));
zeus::CVector3f localDir = bc.GetOwner().GetTransform().transposeRotate(cmd->GetHitDirection());
zeus::CRelAngle angle = std::atan2(localDir.y(), localDir.z());
zeus::CRelAngle angle = std::atan2(localDir.y(), localDir.x());
angle.makeRel();
const CPASAnimParmData parms(pas::EAnimationState::Fall, CPASAnimParm::FromReal32(angle.asDegrees()),
CPASAnimParm::FromEnum(s32(cmd->GetHitSeverity())));