diff options
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/ScenePresence.cs')
-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 9dbe332..93e66e0 100644 --- a/OpenSim/Region/Framework/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Framework/Scenes/ScenePresence.cs | |||
@@ -2872,6 +2872,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
2872 | if (Util.GetDistanceTo(AbsolutePosition, m_lastChildAgentUpdatePosition) >= Scene.ChildReprioritizationDistance || | 2872 | if (Util.GetDistanceTo(AbsolutePosition, m_lastChildAgentUpdatePosition) >= Scene.ChildReprioritizationDistance || |
2873 | Util.GetDistanceTo(CameraPosition, m_lastChildAgentUpdateCamPosition) >= Scene.ChildReprioritizationDistance) | 2873 | Util.GetDistanceTo(CameraPosition, m_lastChildAgentUpdateCamPosition) >= Scene.ChildReprioritizationDistance) |
2874 | { | 2874 | { |
2875 | m_lastChildAgentUpdatePosition = AbsolutePosition; | ||
2876 | m_lastChildAgentUpdateCamPosition = CameraPosition; | ||
2877 | |||
2875 | ChildAgentDataUpdate cadu = new ChildAgentDataUpdate(); | 2878 | ChildAgentDataUpdate cadu = new ChildAgentDataUpdate(); |
2876 | cadu.ActiveGroupID = UUID.Zero.Guid; | 2879 | cadu.ActiveGroupID = UUID.Zero.Guid; |
2877 | cadu.AgentID = UUID.Guid; | 2880 | cadu.AgentID = UUID.Guid; |
@@ -2880,8 +2883,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2880 | Vector3 tempCameraCenter = m_CameraCenter; | 2883 | Vector3 tempCameraCenter = m_CameraCenter; |
2881 | cadu.cameraPosition = tempCameraCenter; | 2884 | cadu.cameraPosition = tempCameraCenter; |
2882 | cadu.drawdistance = m_DrawDistance; | 2885 | cadu.drawdistance = m_DrawDistance; |
2883 | if (m_scene.Permissions.IsGod(new UUID(cadu.AgentID))) | ||
2884 | cadu.godlevel = m_godlevel; | ||
2885 | cadu.GroupAccess = 0; | 2886 | cadu.GroupAccess = 0; |
2886 | cadu.Position = AbsolutePosition; | 2887 | cadu.Position = AbsolutePosition; |
2887 | cadu.regionHandle = m_rootRegionHandle; | 2888 | cadu.regionHandle = m_rootRegionHandle; |
@@ -2904,9 +2905,6 @@ namespace OpenSim.Region.Framework.Scenes | |||
2904 | agentpos.CopyFrom(cadu); | 2905 | agentpos.CopyFrom(cadu); |
2905 | 2906 | ||
2906 | m_scene.SendOutChildAgentUpdates(agentpos, this); | 2907 | m_scene.SendOutChildAgentUpdates(agentpos, this); |
2907 | |||
2908 | m_lastChildAgentUpdatePosition = AbsolutePosition; | ||
2909 | m_lastChildAgentUpdateCamPosition = CameraPosition; | ||
2910 | } | 2908 | } |
2911 | } | 2909 | } |
2912 | 2910 | ||