From e1f5e2df3f921cc019d11a5bece85e9de4f0fa88 Mon Sep 17 00:00:00 2001 From: Teravus Ovares Date: Tue, 20 Jan 2009 06:07:36 +0000 Subject: [PATCH] * minor: A few comments. A bit of cleanup. --- OpenSim/Region/Environment/Scenes/ScenePresence.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 77d5b933ce..2099e9a69a 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs @@ -2313,7 +2313,8 @@ namespace OpenSim.Region.Environment.Scenes sLLVector3 tempCameraCenter = new sLLVector3(new Vector3(m_CameraCenter.X, m_CameraCenter.Y, m_CameraCenter.Z)); cadu.cameraPosition = tempCameraCenter; cadu.drawdistance = m_DrawDistance; - cadu.godlevel = m_godlevel; + if (m_scene.Permissions.IsGod(new UUID(cadu.AgentID))) + cadu.godlevel = m_godlevel; cadu.GroupAccess = 0; cadu.Position = new sLLVector3(AbsolutePosition); cadu.regionHandle = m_scene.RegionInfo.RegionHandle; @@ -2663,7 +2664,11 @@ namespace OpenSim.Region.Environment.Scenes cAgent.ControlFlags |= (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY; } - cAgent.GodLevel = (byte)m_godlevel; + if (m_scene.Permissions.IsGod(new UUID(cAgent.AgentID))) + cAgent.GodLevel = (byte)m_godlevel; + else + cAgent.GodLevel = (byte) 0; + cAgent.AlwaysRun = m_setAlwaysRun; //cAgent.AgentTextures = ??? @@ -2700,8 +2705,8 @@ namespace OpenSim.Region.Environment.Scenes { m_physicsActor.Flying = ((m_AgentControlFlags & (uint)AgentManager.ControlFlags.AGENT_CONTROL_FLY) != 0); } - - m_godlevel = cAgent.GodLevel; + if (m_scene.Permissions.IsGod(new UUID(cAgent.AgentID))) + m_godlevel = cAgent.GodLevel; m_setAlwaysRun = cAgent.AlwaysRun; //cAgent.AgentTextures = ???