diff options
author | Melanie Thielker | 2017-01-06 01:52:42 +0000 |
---|---|---|
committer | Melanie Thielker | 2017-01-06 01:52:42 +0000 |
commit | ad531ecb5388e2dc0efa321d9497f451633bef40 (patch) | |
tree | 5b0adc1a858076cd2197766e3f06b387b281b559 /OpenSim | |
parent | Sync viewer on make root (diff) | |
download | opensim-SC_OLD-ad531ecb5388e2dc0efa321d9497f451633bef40.zip opensim-SC_OLD-ad531ecb5388e2dc0efa321d9497f451633bef40.tar.gz opensim-SC_OLD-ad531ecb5388e2dc0efa321d9497f451633bef40.tar.bz2 opensim-SC_OLD-ad531ecb5388e2dc0efa321d9497f451633bef40.tar.xz |
Handle the case where grid gods and local gods should coexit
Thou shalt have no other gods beside me, your one and true god.
Diffstat (limited to 'OpenSim')
-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 | ||