mirror of
https://github.com/bearstonem/openmohaa-vr.git
synced 2026-10-26 17:00:57 +01:00
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.
This commit is contained in:
1 file changed
+1
-1
@@ -4420,7 +4420,7 @@ void Actor::MoveTo(Event *ev)
|
||||
}
|
||||
|
||||
if (m_patrolCurrentNode) {
|
||||
m_vScriptGoal = origin;
|
||||
m_vScriptGoal = m_patrolCurrentNode->origin;
|
||||
m_bScriptGoalValid = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user