mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +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)
|
||||
|
||||
@@ -180,7 +180,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
if (m_NumberScenes <= 0)
|
||||
return;
|
||||
APollRequest poolreq = o as APollRequest;
|
||||
if (poolreq != null && poolreq.reqID != UUID.Zero)
|
||||
if (poolreq != null && !poolreq.reqID.IsZero())
|
||||
poolreq.thepoll.Process(poolreq);
|
||||
}
|
||||
|
||||
|
||||
@@ -148,7 +148,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
typesMap["prim"] = true;
|
||||
m_features["PhysicsShapeTypes"] = typesMap;
|
||||
|
||||
if(m_doScriptSyntax && m_scriptSyntaxID != UUID.Zero)
|
||||
if(m_doScriptSyntax && !m_scriptSyntaxID.IsZero())
|
||||
m_features["LSLSyntaxId"] = OSD.FromUUID(m_scriptSyntaxID);
|
||||
|
||||
OSDMap meshAnim = new OSDMap();
|
||||
@@ -194,7 +194,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
HandleSimulatorFeaturesRequest(request, response, agentID);
|
||||
}));
|
||||
|
||||
if (m_doScriptSyntax && m_scriptSyntaxID != UUID.Zero && m_scriptSyntaxXML != null)
|
||||
if (m_doScriptSyntax && !m_scriptSyntaxID.IsZero() && m_scriptSyntaxXML != null)
|
||||
{
|
||||
caps.RegisterSimpleHandler("LSLSyntax",
|
||||
new SimpleStreamHandler("/" + UUID.Random(), HandleSyntaxRequest));
|
||||
@@ -389,7 +389,7 @@ namespace OpenSim.Region.ClientStack.Linden
|
||||
{
|
||||
lock(m_scriptSyntaxLock)
|
||||
{
|
||||
if(!m_doScriptSyntax || m_scriptSyntaxID != UUID.Zero)
|
||||
if(!m_doScriptSyntax || !m_scriptSyntaxID.IsZero())
|
||||
return;
|
||||
|
||||
if(!File.Exists("ScriptSyntax.xml"))
|
||||
|
||||
Reference in New Issue
Block a user