mirror of
https://github.com/opensim/opensim.git
synced 2026-08-01 06:06:06 +08:00
Minor formatting cleanup.
This commit is contained in:
@@ -84,11 +84,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
SceneObjectPart part = myScriptEngine.World.GetSceneObjectPart(
|
||||
localID);
|
||||
if(part == null)
|
||||
if (part == null)
|
||||
return;
|
||||
|
||||
det[0].LinkNum = 0;
|
||||
if(part.ParentGroup.Children.Count > 0)
|
||||
if (part.ParentGroup.Children.Count > 0)
|
||||
det[0].LinkNum = part.LinkNum + 1;
|
||||
|
||||
myScriptEngine.PostObjectEvent(localID, new XEventParams(
|
||||
@@ -109,11 +109,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
SceneObjectPart part = myScriptEngine.World.GetSceneObjectPart(
|
||||
localID);
|
||||
if(part == null)
|
||||
if (part == null)
|
||||
return;
|
||||
|
||||
det[0].LinkNum = 0;
|
||||
if(part.ParentGroup.Children.Count > 0)
|
||||
if (part.ParentGroup.Children.Count > 0)
|
||||
det[0].LinkNum = part.LinkNum + 1;
|
||||
|
||||
myScriptEngine.PostObjectEvent(localID, new XEventParams(
|
||||
@@ -130,11 +130,11 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
|
||||
SceneObjectPart part = myScriptEngine.World.GetSceneObjectPart(
|
||||
localID);
|
||||
if(part == null)
|
||||
if (part == null)
|
||||
return;
|
||||
|
||||
det[0].LinkNum = 0;
|
||||
if(part.ParentGroup.Children.Count > 0)
|
||||
if (part.ParentGroup.Children.Count > 0)
|
||||
det[0].LinkNum = part.LinkNum + 1;
|
||||
|
||||
myScriptEngine.PostObjectEvent(localID, new XEventParams(
|
||||
|
||||
@@ -661,7 +661,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
XDetectParams parms = m_ScriptEngine.GetDetectParams(m_itemID, number);
|
||||
if(parms == null)
|
||||
if (parms == null)
|
||||
return new LSL_Types.Vector3(0, 0, 0);
|
||||
|
||||
return parms.OffsetPos;
|
||||
@@ -688,7 +688,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
XDetectParams parms = m_ScriptEngine.GetDetectParams(m_itemID, number);
|
||||
if(parms == null)
|
||||
if (parms == null)
|
||||
return new LSL_Types.LSLInteger(0);
|
||||
|
||||
return new LSL_Types.LSLInteger(parms.LinkNum);
|
||||
@@ -2578,7 +2578,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
UserAgentData userAgent =
|
||||
World.CommsManager.UserService.GetAgentByUUID(id);
|
||||
|
||||
if(userProfile == null || userAgent == null)
|
||||
if (userProfile == null || userAgent == null)
|
||||
return LLUUID.Zero.ToString();
|
||||
|
||||
string reply = String.Empty;
|
||||
|
||||
@@ -83,7 +83,7 @@ namespace OpenSim.Region.ScriptEngine.XEngine.Script
|
||||
{
|
||||
Dictionary<string, object> vars = new Dictionary<string, object>();
|
||||
|
||||
if(m_Fields == null)
|
||||
if (m_Fields == null)
|
||||
return vars;
|
||||
|
||||
m_Fields.Clear();
|
||||
|
||||
@@ -395,13 +395,13 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
m_Scripts[itemID] = instance;
|
||||
}
|
||||
|
||||
if(!m_PrimObjects.ContainsKey(localID))
|
||||
if (!m_PrimObjects.ContainsKey(localID))
|
||||
m_PrimObjects[localID] = new List<LLUUID>();
|
||||
|
||||
if(!m_PrimObjects[localID].Contains(itemID))
|
||||
if (!m_PrimObjects[localID].Contains(itemID))
|
||||
m_PrimObjects[localID].Add(itemID);
|
||||
|
||||
if(!m_Assemblies.ContainsKey(assetID))
|
||||
if (!m_Assemblies.ContainsKey(assetID))
|
||||
m_Assemblies[assetID] = assembly;
|
||||
}
|
||||
return true;
|
||||
@@ -930,14 +930,14 @@ namespace OpenSim.Region.ScriptEngine.XEngine
|
||||
result = m_CurrentResult;
|
||||
}
|
||||
|
||||
if(result == null)
|
||||
if (result == null)
|
||||
return true;
|
||||
|
||||
result.Abort();
|
||||
|
||||
if(SmartThreadPool.WaitAll(new IWorkItemResult[] {result}, new TimeSpan((long)10000000), false))
|
||||
if (SmartThreadPool.WaitAll(new IWorkItemResult[] {result}, new TimeSpan((long)10000000), false))
|
||||
{
|
||||
lock(m_EventQueue)
|
||||
lock (m_EventQueue)
|
||||
{
|
||||
m_CurrentResult = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user