diff options
Diffstat (limited to 'OpenSim/Region/Environment/Scenes')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/InnerScene.cs | 2 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/Scene.cs | 5 | ||||
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 14 |
3 files changed, 16 insertions, 5 deletions
diff --git a/OpenSim/Region/Environment/Scenes/InnerScene.cs b/OpenSim/Region/Environment/Scenes/InnerScene.cs index c75ca81..5d99f22 100644 --- a/OpenSim/Region/Environment/Scenes/InnerScene.cs +++ b/OpenSim/Region/Environment/Scenes/InnerScene.cs | |||
@@ -241,7 +241,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
241 | } | 241 | } |
242 | catch (Exception e) | 242 | catch (Exception e) |
243 | { | 243 | { |
244 | m_log.ErrorFormat("[INNER SCENE]: Failed to update {0}, {1} - {2}", entity.Name, entity.m_uuid, e); | 244 | m_log.ErrorFormat("[INNER SCENE]: Failed to update {0}, - {1}", entity.Name, e);//entity.m_uuid |
245 | } | 245 | } |
246 | } | 246 | } |
247 | m_updateList.Clear(); | 247 | m_updateList.Clear(); |
diff --git a/OpenSim/Region/Environment/Scenes/Scene.cs b/OpenSim/Region/Environment/Scenes/Scene.cs index 58c32a4..7c1faa3 100644 --- a/OpenSim/Region/Environment/Scenes/Scene.cs +++ b/OpenSim/Region/Environment/Scenes/Scene.cs | |||
@@ -2087,7 +2087,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
2087 | /// <param name="sessionID"></param> | 2087 | /// <param name="sessionID"></param> |
2088 | /// <param name="token"></param> | 2088 | /// <param name="token"></param> |
2089 | /// <param name="controllingClient"></param> | 2089 | /// <param name="controllingClient"></param> |
2090 | public void handleRequestGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, | 2090 | public void handleRequestGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, bool godLike, |
2091 | IClientAPI controllingClient) | 2091 | IClientAPI controllingClient) |
2092 | { | 2092 | { |
2093 | // First check that this is the sim owner | 2093 | // First check that this is the sim owner |
@@ -2102,7 +2102,8 @@ namespace OpenSim.Region.Environment.Scenes | |||
2102 | { | 2102 | { |
2103 | if (sessionID == controllingClient.SessionId) | 2103 | if (sessionID == controllingClient.SessionId) |
2104 | { | 2104 | { |
2105 | m_scenePresences[agentID].GrantGodlikePowers(agentID, testSessionID, token); | 2105 | //m_log.Info("godlike: " + godLike.ToString()); |
2106 | m_scenePresences[agentID].GrantGodlikePowers(agentID, testSessionID, token, godLike); | ||
2106 | } | 2107 | } |
2107 | } | 2108 | } |
2108 | } | 2109 | } |
diff --git a/OpenSim/Region/Environment/Scenes/ScenePresence.cs b/OpenSim/Region/Environment/Scenes/ScenePresence.cs index 1731cd9..fb0e836 100644 --- a/OpenSim/Region/Environment/Scenes/ScenePresence.cs +++ b/OpenSim/Region/Environment/Scenes/ScenePresence.cs | |||
@@ -1631,7 +1631,7 @@ namespace OpenSim.Region.Environment.Scenes | |||
1631 | /// This allows the Sim owner the abiility to kick users from their sim currently. | 1631 | /// This allows the Sim owner the abiility to kick users from their sim currently. |
1632 | /// It tells the client that the agent has permission to do so. | 1632 | /// It tells the client that the agent has permission to do so. |
1633 | /// </summary> | 1633 | /// </summary> |
1634 | public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token) | 1634 | public void GrantGodlikePowers(LLUUID agentID, LLUUID sessionID, LLUUID token, bool godStatus) |
1635 | { | 1635 | { |
1636 | GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket(); | 1636 | GrantGodlikePowersPacket respondPacket = new GrantGodlikePowersPacket(); |
1637 | GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock(); | 1637 | GrantGodlikePowersPacket.GrantDataBlock gdb = new GrantGodlikePowersPacket.GrantDataBlock(); |
@@ -1640,7 +1640,17 @@ namespace OpenSim.Region.Environment.Scenes | |||
1640 | adb.AgentID = agentID; | 1640 | adb.AgentID = agentID; |
1641 | adb.SessionID = sessionID; // More security | 1641 | adb.SessionID = sessionID; // More security |
1642 | 1642 | ||
1643 | gdb.GodLevel = (byte) 250; | 1643 | if (godStatus) |
1644 | { | ||
1645 | gdb.GodLevel = (byte)250; | ||
1646 | m_godlevel = 250; | ||
1647 | } | ||
1648 | else | ||
1649 | { | ||
1650 | gdb.GodLevel = (byte)0; | ||
1651 | m_godlevel = 0; | ||
1652 | } | ||
1653 | |||
1644 | gdb.Token = token; | 1654 | gdb.Token = token; |
1645 | //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; | 1655 | //respondPacket.AgentData = (GrantGodlikePowersPacket.AgentDataBlock)ablock; |
1646 | respondPacket.GrantData = gdb; | 1656 | respondPacket.GrantData = gdb; |