diff options
author | Teravus Ovares | 2008-03-14 15:52:32 +0000 |
---|---|---|
committer | Teravus Ovares | 2008-03-14 15:52:32 +0000 |
commit | ce9c2ecac8aa41e5ff22203e5436a4596c14b370 (patch) | |
tree | a5833be8fa9b8838413616649403bccb076d1775 /OpenSim/Region/Environment/Scenes/ScenePresence.cs | |
parent | * Added null root part guard (diff) | |
download | opensim-SC_OLD-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.zip opensim-SC_OLD-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.tar.gz opensim-SC_OLD-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.tar.bz2 opensim-SC_OLD-ce9c2ecac8aa41e5ff22203e5436a4596c14b370.tar.xz |
* You can leave godmode if you want now.
* Fixed a compile error.
Diffstat (limited to 'OpenSim/Region/Environment/Scenes/ScenePresence.cs')
-rw-r--r-- | OpenSim/Region/Environment/Scenes/ScenePresence.cs | 14 |
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; |