From 8dcd6b3109751c2aae4e659083149b8ad893ae27 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Mon, 6 Apr 2020 13:17:16 -0400 Subject: [PATCH] CBodyState: Make use of HasAnims() We can replace the usages of GetNumAnims with this now. --- Runtime/Character/CBodyState.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Runtime/Character/CBodyState.cpp b/Runtime/Character/CBodyState.cpp index b23417a91..20a1703d9 100644 --- a/Runtime/Character/CBodyState.cpp +++ b/Runtime/Character/CBodyState.cpp @@ -539,7 +539,7 @@ pas::EAnimationState CBSTurn::UpdateBody(float dt, CBodyController& bc, CStateMa } void CBSFlyerTurn::Start(CBodyController& bc, CStateManager& mgr) { - if (bc.GetPASDatabase().GetAnimState(8)->GetNumAnims()) { + if (bc.GetPASDatabase().GetAnimState(8)->HasAnims()) { CBSTurn::Start(bc, mgr); } else { x8_dest = zeus::CVector2f(bc.GetCommandMgr().GetFaceVector().toVec2f()); @@ -556,7 +556,7 @@ void CBSFlyerTurn::Start(CBodyController& bc, CStateManager& mgr) { } pas::EAnimationState CBSFlyerTurn::UpdateBody(float dt, CBodyController& bc, CStateManager& mgr) { - if (bc.GetPASDatabase().GetAnimState(8)->GetNumAnims()) { + if (bc.GetPASDatabase().GetAnimState(8)->HasAnims()) { return CBSTurn::UpdateBody(dt, bc, mgr); }