diff options
author | Melanie | 2010-03-06 11:58:19 +0000 |
---|---|---|
committer | Melanie | 2010-03-06 11:58:19 +0000 |
commit | 9fa9cfd2154fb1225b5b96ad26d7284d446f9961 (patch) | |
tree | 2a0f1ba9ea7bfb211819fbb9946315cb89a9d828 /OpenSim/Region/Framework/Scenes/ScenePresence.cs | |
parent | - implementing server 1.38 functions (diff) | |
parent | Merge branch 'master' of ssh://diva@opensimulator.org/var/git/opensim (diff) | |
download | opensim-SC-9fa9cfd2154fb1225b5b96ad26d7284d446f9961.zip opensim-SC-9fa9cfd2154fb1225b5b96ad26d7284d446f9961.tar.gz opensim-SC-9fa9cfd2154fb1225b5b96ad26d7284d446f9961.tar.bz2 opensim-SC-9fa9cfd2154fb1225b5b96ad26d7284d446f9961.tar.xz |
Merge branch 'master' of melanie@opensimulator.org:/var/git/opensim
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 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 | ||