Skip to content

Commit 70c4512

Browse files
committed
Update movepath in difference place. Still need to adjust some other stuff
1 parent 017d4dc commit 70c4512

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Entities/Actor.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1287,6 +1287,10 @@ void Actor::OnNewMovePath() {
12871287
//////////////////////////////////////////////////////////////////////////////////////////
12881288

12891289
void Actor::PreControllerUpdate() {
1290+
if (m_UpdateMovePath) {
1291+
UpdateMovePath();
1292+
}
1293+
12901294
if (m_PathRequest && m_PathRequest->complete) {
12911295
m_MovePath = const_cast<std::list<Vector> &>(m_PathRequest->path);
12921296
m_PathRequest.reset();
@@ -1304,10 +1308,6 @@ void Actor::Update()
13041308
// Hit Body update and handling
13051309
MOSRotating::Update();
13061310

1307-
if (m_UpdateMovePath) {
1308-
UpdateMovePath();
1309-
}
1310-
13111311
m_PieMenu->Update();
13121312

13131313
// Update the viewpoint to be at least what the position is

0 commit comments

Comments
 (0)