try to improve option automatic_gods processing
parent
da69bc5da6
commit
90dee2fce6
|
@ -246,17 +246,14 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
{
|
{
|
||||||
bool newstate = false;
|
bool newstate = false;
|
||||||
if(m_forceGodModeAlwaysOn)
|
if(m_forceGodModeAlwaysOn)
|
||||||
newstate = true;
|
newstate = m_viewergodlevel >= 200;
|
||||||
else
|
if(state != null)
|
||||||
{
|
{
|
||||||
if(state != null)
|
OSDMap s = (OSDMap)state;
|
||||||
{
|
|
||||||
OSDMap s = (OSDMap)state;
|
|
||||||
|
|
||||||
if (s.ContainsKey("ViewerUiIsGod"))
|
if (s.ContainsKey("ViewerUiIsGod"))
|
||||||
newstate = s["ViewerUiIsGod"].AsBoolean();
|
newstate = s["ViewerUiIsGod"].AsBoolean();
|
||||||
m_lastLevelToViewer = m_viewergodlevel; // we are not changing viewer level by default
|
m_lastLevelToViewer = m_viewergodlevel; // we are not changing viewer level by default
|
||||||
}
|
|
||||||
}
|
}
|
||||||
UpdateGodLevels(newstate);
|
UpdateGodLevels(newstate);
|
||||||
}
|
}
|
||||||
|
@ -264,6 +261,11 @@ namespace OpenSim.Region.Framework.Scenes
|
||||||
public void HasMovedAway()
|
public void HasMovedAway()
|
||||||
{
|
{
|
||||||
m_lastLevelToViewer = 0;
|
m_lastLevelToViewer = 0;
|
||||||
|
if(m_forceGodModeAlwaysOn)
|
||||||
|
{
|
||||||
|
m_viewergodlevel = m_rightsGodLevel;
|
||||||
|
m_godlevel = m_rightsGodLevel;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public int UserLevel
|
public int UserLevel
|
||||||
|
|
Loading…
Reference in New Issue