From 70c4512db486d85d155bf3097f14a1bafb466605 Mon Sep 17 00:00:00 2001 From: Causeless Date: Sat, 30 Dec 2023 18:44:50 +0000 Subject: [PATCH] Update movepath in difference place. Still need to adjust some other stuff --- Entities/Actor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Entities/Actor.cpp b/Entities/Actor.cpp index cbea49e02..2f8aa42f5 100644 --- a/Entities/Actor.cpp +++ b/Entities/Actor.cpp @@ -1287,6 +1287,10 @@ void Actor::OnNewMovePath() { ////////////////////////////////////////////////////////////////////////////////////////// void Actor::PreControllerUpdate() { + if (m_UpdateMovePath) { + UpdateMovePath(); + } + if (m_PathRequest && m_PathRequest->complete) { m_MovePath = const_cast &>(m_PathRequest->path); m_PathRequest.reset(); @@ -1304,10 +1308,6 @@ void Actor::Update() // Hit Body update and handling MOSRotating::Update(); - if (m_UpdateMovePath) { - UpdateMovePath(); - } - m_PieMenu->Update(); // Update the viewpoint to be at least what the position is