diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/GodController.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/OpenSim/Region/Framework/Scenes/GodController.cs b/OpenSim/Region/Framework/Scenes/GodController.cs index abdbe51..95fdc02 100644 --- a/OpenSim/Region/Framework/Scenes/GodController.cs +++ b/OpenSim/Region/Framework/Scenes/GodController.cs | |||
@@ -50,6 +50,7 @@ namespace OpenSim.Region.Framework.Scenes | |||
50 | ScenePresence m_scenePresence; | 50 | ScenePresence m_scenePresence; |
51 | Scene m_scene; | 51 | Scene m_scene; |
52 | protected bool m_allowGridGods; | 52 | protected bool m_allowGridGods; |
53 | protected bool m_forceGridGods; | ||
53 | protected bool m_regionOwnerIsGod; | 54 | protected bool m_regionOwnerIsGod; |
54 | protected bool m_regionManagerIsGod; | 55 | protected bool m_regionManagerIsGod; |
55 | protected bool m_parcelOwnerIsGod; | 56 | protected bool m_parcelOwnerIsGod; |
@@ -76,6 +77,11 @@ namespace OpenSim.Region.Framework.Scenes | |||
76 | Util.GetConfigVarFromSections<bool>(config, | 77 | Util.GetConfigVarFromSections<bool>(config, |
77 | "allow_grid_gods", sections, false); | 78 | "allow_grid_gods", sections, false); |
78 | 79 | ||
80 | // If grid gods are active, dont allow any other gods | ||
81 | m_forceGridGods = | ||
82 | Util.GetConfigVarFromSections<bool>(config, | ||
83 | "force_grid_gods", sections, false); | ||
84 | |||
79 | // The owner of a region is a god in his region only. | 85 | // The owner of a region is a god in his region only. |
80 | m_regionOwnerIsGod = | 86 | m_regionOwnerIsGod = |
81 | Util.GetConfigVarFromSections<bool>(config, | 87 | Util.GetConfigVarFromSections<bool>(config, |
@@ -138,6 +144,9 @@ namespace OpenSim.Region.Framework.Scenes | |||
138 | bool shoudBeGod = m_forceGodModeAlwaysOn ? canBeGod : (m_viewerUiIsGod && canBeGod); | 144 | bool shoudBeGod = m_forceGodModeAlwaysOn ? canBeGod : (m_viewerUiIsGod && canBeGod); |
139 | 145 | ||
140 | int godLevel = m_allowGridGods ? m_userLevel : 200; | 146 | int godLevel = m_allowGridGods ? m_userLevel : 200; |
147 | if ((!m_forceGridGods) && m_userLevel < 200) | ||
148 | godLevel = 200; | ||
149 | |||
141 | if (!shoudBeGod) | 150 | if (!shoudBeGod) |
142 | godLevel = 0; | 151 | godLevel = 0; |
143 | 152 | ||