From 995f3bb3568be59659662ed78146a65f1404dc42 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 19 Sep 2020 12:12:49 -0400 Subject: [PATCH] CDrone: Death fixes --- Runtime/MP1/World/CDrone.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Runtime/MP1/World/CDrone.cpp b/Runtime/MP1/World/CDrone.cpp index e03b55cb1..40f68b3bc 100644 --- a/Runtime/MP1/World/CDrone.cpp +++ b/Runtime/MP1/World/CDrone.cpp @@ -441,14 +441,14 @@ void CDrone::Death(CStateManager& mgr, const zeus::CVector3f& direction, EScript SetTransform(zeus::lookAt(GetTranslation(), GetTranslation() - direction) * zeus::CTransform::RotateX(zeus::degToRad(45.f))); } - - if (x450_bodyController->GetPercentageFrozen() > 0.f) { - x450_bodyController->UnFreeze(); - } - - x400_25_alive = false; - SendScriptMsgs(state, mgr, EScriptObjectMessage::None); } + + if (x450_bodyController->GetPercentageFrozen() > 0.f) { + x450_bodyController->UnFreeze(); + } + + x400_25_alive = false; + SendScriptMsgs(state, mgr, EScriptObjectMessage::None); } void CDrone::KnockBack(const zeus::CVector3f& backVec, CStateManager& mgr, const CDamageInfo& info, EKnockBackType type,