From a2fe44afe1feaa74638655ee1fbf718f6446a80f Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sun, 13 Sep 2020 19:56:55 -0400 Subject: [PATCH] CDrone: PathFindEx target fix --- Runtime/MP1/World/CDrone.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/MP1/World/CDrone.cpp b/Runtime/MP1/World/CDrone.cpp index 74da07b34..158b0a38f 100644 --- a/Runtime/MP1/World/CDrone.cpp +++ b/Runtime/MP1/World/CDrone.cpp @@ -777,7 +777,7 @@ void CDrone::SpecialAttack(CStateManager& mgr, EStateMsg msg, float dt) { void CDrone::PathFindEx(CStateManager& mgr, EStateMsg msg, float dt) { CPatterned::PathFind(mgr, msg, dt); if (msg == EStateMsg::Activate) { - zeus::CVector3f searchOff = GetTranslation() + zeus::CVector3f{0.f, 0.f, x664_}; + auto searchOff = mgr.GetPlayer().GetTranslation() + zeus::CVector3f{0.f, 0.f, x664_}; CPathFindSearch::EResult res = GetSearchPath()->Search(GetTranslation(), searchOff); if (res != CPathFindSearch::EResult::Success && (res == CPathFindSearch::EResult::NoDestPoint || res == CPathFindSearch::EResult::NoPath)) {