Skip to content

Commit b0af254

Browse files
committed
fix NPC facing angle when following players
1 parent 93bf67a commit b0af254

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Server/Components/NPCs/NPC/npc.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2572,9 +2572,8 @@ void NPC::tick(Microseconds elapsed, TimePoint now)
25722572
}
25732573
else if (moving_)
25742574
{
2575-
// Update target position to player's current position
2576-
targetPosition_ = currentPlayerPos;
2577-
lastMove_ = now;
2575+
// Update target position to player's current position and recall move for angle update too
2576+
move(currentPlayerPos, followMoveType_, followMoveSpeed_, followStopRange_);
25782577
}
25792578
}
25802579

0 commit comments

Comments
 (0)