fix/simplify validation of god_data update field

This commit is contained in:
UbitUmarov
2017-01-06 03:45:47 +00:00
parent 7ac74fcf73
commit e5a3d85bc7
2 changed files with 23 additions and 16 deletions

View File

@@ -198,12 +198,13 @@ namespace OpenSim.Region.Framework.Scenes
public void SetState(OSD state)
{
if(state == null)
return;
OSDMap s = (OSDMap)state;
if (s.ContainsKey("ViewerUiIsGod"))
m_viewerUiIsGod = s["ViewerUiIsGod"].AsBoolean();
SyncViewerState();
}
public int UserLevel