Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Update movepath in difference place. Still need to adjust some other …
Browse files Browse the repository at this point in the history
…stuff
  • Loading branch information
Causeless committed Dec 30, 2023
1 parent 017d4dc commit 70c4512
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Entities/Actor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1287,6 +1287,10 @@ void Actor::OnNewMovePath() {
//////////////////////////////////////////////////////////////////////////////////////////

void Actor::PreControllerUpdate() {
if (m_UpdateMovePath) {
UpdateMovePath();
}

if (m_PathRequest && m_PathRequest->complete) {
m_MovePath = const_cast<std::list<Vector> &>(m_PathRequest->path);
m_PathRequest.reset();
Expand All @@ -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
Expand Down

0 comments on commit 70c4512

Please sign in to comment.