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

@@ -118,7 +118,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Friends
// If we're in god mode, we reverse the meaning. Offer
// calling card becomes "Take a calling card" for that
// person, no matter if they agree or not.
if (sp.GodController.GodLevel >= 200)
if (sp.isViewerUIGod)
{
CreateCallingCard(client.AgentId, destID, UUID.Zero, true);
return;