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