replace godlevel compares by the new faster bool isViewerUIGod

This commit is contained in:
UbitUmarov
2017-01-07 18:41:46 +00:00
parent 5bcb1c0e72
commit effa32cfa4
8 changed files with 13 additions and 13 deletions

View File

@@ -540,7 +540,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
}
}
if (presence.IsDeleted || presence.IsChildAgent || presence.GodController.GodLevel > 0.0)
if (presence.IsDeleted || presence.IsChildAgent || presence.isViewerUIGod)
return;
// if the object the script is in is attached and the avatar is the owner