aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/Scenes/ScenePresence.cs
diff options
context:
space:
mode:
authorTeravus Ovares2008-03-14 15:52:32 +0000
committerTeravus Ovares2008-03-14 15:52:32 +0000
commitce9c2ecac8aa41e5ff22203e5436a4596c14b370 (patch)
treea5833be8fa9b8838413616649403bccb076d1775 /OpenSim/Region/Environment/Scenes/ScenePresence.cs
parent* Added null root part guard (diff)
downloadopensim-SC-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.zip
opensim-SC-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.tar.gz
opensim-SC-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.tar.bz2
opensim-SC-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.tar.xz
* You can leave godmode if you want now.
* Fixed a compile error.
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/Environment/Scenes/ScenePresence.cs14
1 files changed, 12 insertions, 2 deletions
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;