mirror of
https://github.com/opensim/opensim.git
synced 2026-08-09 18:55:58 +08:00
!= UUID.Zero is slow
This commit is contained in:
@@ -1769,7 +1769,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
{
|
||||
if (parcelOwner == m_AgentID)
|
||||
showType = 2;
|
||||
else if (landdata.GroupID != UUID.Zero)
|
||||
else if (!landdata.GroupID.IsZero())
|
||||
{
|
||||
ulong powers = sp.ControllingClient.GetGroupPowers(landdata.GroupID);
|
||||
if ((powers & (ulong)(GroupPowers.ReturnGroupOwned | GroupPowers.ReturnGroupSet | GroupPowers.ReturnNonGroup)) != 0)
|
||||
@@ -2058,7 +2058,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
|
||||
ulong gpowers = client.GetGroupPowers(land.LandData.GroupID);
|
||||
SceneObjectGroup telehub = null;
|
||||
if (m_Scene.RegionInfo.RegionSettings.TelehubObject != UUID.Zero)
|
||||
if (!m_Scene.RegionInfo.RegionSettings.TelehubObject.IsZero())
|
||||
// Does the telehub exist in the scene?
|
||||
telehub = m_Scene.GetSceneObjectGroup(m_Scene.RegionInfo.RegionSettings.TelehubObject);
|
||||
|
||||
|
||||
@@ -74,7 +74,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
return;
|
||||
}
|
||||
|
||||
if (objectID != UUID.Zero)
|
||||
if (!objectID.IsZero())
|
||||
{
|
||||
SceneObjectPart sop = m_Scene.GetSceneObjectPart(objectID);
|
||||
if (sop == null)
|
||||
|
||||
Reference in New Issue
Block a user