diff options
author | Justin Clark-Casey (justincc) | 2011-08-03 01:12:32 +0100 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2011-08-03 01:12:32 +0100 |
commit | 0c23764ce2f7fd8b697ff493bf50742b9aaf2a6a (patch) | |
tree | 44f59b77b3160b5698d51cad3a4f0b75758a1c88 /OpenSim/Region | |
parent | refactor: Move update_movement_flag and the final check inside the m_allowMov... (diff) | |
download | opensim-SC_OLD-0c23764ce2f7fd8b697ff493bf50742b9aaf2a6a.zip opensim-SC_OLD-0c23764ce2f7fd8b697ff493bf50742b9aaf2a6a.tar.gz opensim-SC_OLD-0c23764ce2f7fd8b697ff493bf50742b9aaf2a6a.tar.bz2 opensim-SC_OLD-0c23764ce2f7fd8b697ff493bf50742b9aaf2a6a.tar.xz |
get autopilot/go here to work immediately.
This works with viewer 1.23.5 and so in theory should work with libopenmetaverse.
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 7cc6d66..9c71492 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -1552,9 +1552,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
1552 | updated = true; | 1552 | updated = true; |
1553 | } | 1553 | } |
1554 | 1554 | ||
1555 | m_log.DebugFormat( | 1555 | // m_log.DebugFormat( |
1556 | "[SCENE PRESENCE]: bAllowUpdateMoveToPosition {0}, m_moveToPositionInProgress {1}, m_autopilotMoving {2}", | 1556 | // "[SCENE PRESENCE]: bAllowUpdateMoveToPosition {0}, m_moveToPositionInProgress {1}, m_autopilotMoving {2}", |
1557 | allowUpdate, m_moveToPositionInProgress, m_autopilotMoving); | 1557 | // allowUpdate, m_moveToPositionInProgress, m_autopilotMoving); |
1558 | 1558 | ||
1559 | if (allowUpdate && (m_moveToPositionInProgress && !m_autopilotMoving)) | 1559 | if (allowUpdate && (m_moveToPositionInProgress && !m_autopilotMoving)) |
1560 | { | 1560 | { |
@@ -1684,6 +1684,10 @@ namespace OpenSim.Region.Framework.Scenes | |||
1684 | 1684 | ||
1685 | m_moveToPositionInProgress = true; | 1685 | m_moveToPositionInProgress = true; |
1686 | m_moveToPositionTarget = pos; | 1686 | m_moveToPositionTarget = pos; |
1687 | |||
1688 | Vector3 agent_control_v3 = new Vector3(); | ||
1689 | DoMoveToPositionUpdate(ref agent_control_v3, Rotation, false, true); | ||
1690 | AddNewMovement(agent_control_v3, Rotation); | ||
1687 | } | 1691 | } |
1688 | 1692 | ||
1689 | private void CheckAtSitTarget() | 1693 | private void CheckAtSitTarget() |