diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/ScenePresence.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/ScenePresence.cs b/OpenSim/Region/Framework/Scenes/ScenePresence.cs index 465e916..4256be9 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2675,6 +2675,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2675 | if (Util.GetDistanceTo(AbsolutePosition, m_lastChildAgentUpdatePosition) >= Scene.ChildReprioritizationDistance || | 2675 | if (Util.GetDistanceTo(AbsolutePosition, m_lastChildAgentUpdatePosition) >= Scene.ChildReprioritizationDistance || |
2676 | Util.GetDistanceTo(CameraPosition, m_lastChildAgentUpdateCamPosition) >= Scene.ChildReprioritizationDistance) | 2676 | Util.GetDistanceTo(CameraPosition, m_lastChildAgentUpdateCamPosition) >= Scene.ChildReprioritizationDistance) |
2677 | { | 2677 | { |
2678 | m_lastChildAgentUpdatePosition = AbsolutePosition; | ||
2679 | m_lastChildAgentUpdateCamPosition = CameraPosition; | ||
2680 | |||
2678 | ChildAgentDataUpdate cadu = new ChildAgentDataUpdate(); | 2681 | ChildAgentDataUpdate cadu = new ChildAgentDataUpdate(); |
2679 | cadu.ActiveGroupID = UUID.Zero.Guid; | 2682 | cadu.ActiveGroupID = UUID.Zero.Guid; |
2680 | cadu.AgentID = UUID.Guid; | 2683 | cadu.AgentID = UUID.Guid; |
@@ -2683,8 +2686,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2683 | Vector3 tempCameraCenter = m_CameraCenter; | 2686 | Vector3 tempCameraCenter = m_CameraCenter; |
2684 | cadu.cameraPosition = tempCameraCenter; | 2687 | cadu.cameraPosition = tempCameraCenter; |
2685 | cadu.drawdistance = m_DrawDistance; | 2688 | cadu.drawdistance = m_DrawDistance; |
2686 | if (m_scene.Permissions.IsGod(new UUID(cadu.AgentID))) | ||
2687 | cadu.godlevel = m_godlevel; | ||
2688 | cadu.GroupAccess = 0; | 2689 | cadu.GroupAccess = 0; |
2689 | cadu.Position = AbsolutePosition; | 2690 | cadu.Position = AbsolutePosition; |
2690 | cadu.regionHandle = m_rootRegionHandle; | 2691 | cadu.regionHandle = m_rootRegionHandle; |
@@ -2707,9 +2708,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2707 | agentpos.CopyFrom(cadu); | 2708 | agentpos.CopyFrom(cadu); |
2708 | 2709 | ||
2709 | m_scene.SendOutChildAgentUpdates(agentpos, this); | 2710 | m_scene.SendOutChildAgentUpdates(agentpos, this); |
2710 | |||
2711 | m_lastChildAgentUpdatePosition = AbsolutePosition; | ||
2712 | m_lastChildAgentUpdateCamPosition = CameraPosition; | ||
2713 | } | 2711 | } |
2714 | } | 2712 | } |
2715 | 2713 | ||