From 45205c1906ca1beb64cf5680005e5c867a5dbfcd Mon Sep 17 00:00:00 2001 From: smallmodel <15067410+smallmodel@users.noreply.github.com> Date: Mon, 2 Jun 2025 01:47:35 +0200 Subject: [PATCH] Fix MoveTo() using actor's origin instead of waypoint origin MoveTo() was incorrectly setting the script goal to the actor's origin rather than the waypoint's origin, causing the actor to stand still instead of moving to the specified location. --- code/fgame/actor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/fgame/actor.cpp b/code/fgame/actor.cpp index 028275ad..c33f4a6b 100644 --- a/code/fgame/actor.cpp +++ b/code/fgame/actor.cpp @@ -4420,7 +4420,7 @@ void Actor::MoveTo(Event *ev) } if (m_patrolCurrentNode) { - m_vScriptGoal = origin; + m_vScriptGoal = m_patrolCurrentNode->origin; m_bScriptGoalValid = true; }