Minor formatting cleanup.

0.6.0-stable
Jeff Ames 2008-06-06 01:19:15 +00:00
parent 67e06fa3f6
commit fbd37c420f
9 changed files with 37 additions and 37 deletions

View File

@ -676,4 +676,4 @@ namespace OpenSim.Framework.Communications.Capabilities
}
}
}
}
}

View File

@ -474,10 +474,10 @@ namespace OpenSim.Region.ClientStack.LindenUDP
clientCircuits_reverse.Remove(circuitcode);
lock(clientCircuits) {
lock (clientCircuits) {
clientCircuits.Remove(sendto);
}
lock(proxyCircuits) {
lock (proxyCircuits) {
proxyCircuits.Remove(circuitcode);
}
}
@ -523,4 +523,4 @@ namespace OpenSim.Region.ClientStack.LindenUDP
PacketServer.AddNewClient(userEP, useCircuit, m_assetCache, m_authenticateSessionsClass, proxyEP);
}
}
}
}

View File

@ -1324,7 +1324,7 @@ namespace OpenSim.Region.Environment.Scenes
void AdaptTree(ref PrimitiveBaseShape tree)
{
// Tree size has to be adapted depending on its type
switch((Tree)tree.State)
switch ((Tree)tree.State)
{
case Tree.Cypress1:
case Tree.Cypress2:

View File

@ -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(

View File

@ -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;

View File

@ -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();

View File

@ -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;
}

View File

@ -57,7 +57,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
foreach(KeyValuePair<int, double> number in numberSet)
foreach (KeyValuePair<int, double> number in numberSet)
{
testFloat = new LSL_Types.LSLFloat(number.Key);
Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance));
@ -94,7 +94,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
foreach(KeyValuePair<double, double> number in numberSet)
foreach (KeyValuePair<double, double> number in numberSet)
{
testFloat = new LSL_Types.LSLFloat(number.Key);
Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance));
@ -131,7 +131,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
int testNumber;
foreach(KeyValuePair<double, int> number in numberSet)
foreach (KeyValuePair<double, int> number in numberSet)
{
testNumber = new LSL_Types.LSLFloat(number.Key);
Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting int " + number.Value);
@ -168,7 +168,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
uint testNumber;
foreach(KeyValuePair<double, int> number in numberSet)
foreach (KeyValuePair<double, int> number in numberSet)
{
testNumber = new LSL_Types.LSLFloat(number.Key);
Assert.AreEqual(number.Value, testNumber, "Converting double " + number.Key + ", expecting uint " + number.Value);
@ -205,7 +205,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
bool testBool;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloat = new LSL_Types.LSLFloat(number);
testBool = testFloat;
@ -244,7 +244,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
foreach(int number in numberList)
foreach (int number in numberList)
{
testFloat = number;
Assert.That(testFloat.value, new DoubleToleranceConstraint(number, _lowPrecisionTolerance));
@ -281,7 +281,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
foreach(KeyValuePair<string, double> number in numberSet)
foreach (KeyValuePair<string, double> number in numberSet)
{
testFloat = number.Key;
Assert.That(testFloat.value, new DoubleToleranceConstraint(number.Value, _lowPrecisionTolerance));
@ -318,7 +318,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloat = number;
Assert.That(testFloat.value, new DoubleToleranceConstraint(number, _lowPrecisionTolerance));
@ -355,7 +355,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloatA, testFloatB;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloatA = new LSL_Types.LSLFloat(number);
testFloatB = new LSL_Types.LSLFloat(number);
@ -396,7 +396,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloatA, testFloatB;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloatA = new LSL_Types.LSLFloat(number);
testFloatB = new LSL_Types.LSLFloat(number + 1.0);
@ -438,7 +438,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
double testNumber;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloat = new LSL_Types.LSLFloat(number);
@ -484,7 +484,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
double testNumber;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloat = new LSL_Types.LSLFloat(number);
@ -530,7 +530,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
double testNumber;
LSL_Types.LSLFloat testFloat;
foreach(double number in numberList)
foreach (double number in numberList)
{
testFloat = new LSL_Types.LSLFloat(number);
testNumber = testFloat;
@ -569,7 +569,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLFloat testFloat;
foreach(KeyValuePair<double, string> number in numberSet)
foreach (KeyValuePair<double, string> number in numberSet)
{
testFloat = new LSL_Types.LSLFloat(number.Key);
Assert.AreEqual(number.Value, testFloat.ToString());

View File

@ -65,7 +65,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLString testString;
foreach(KeyValuePair<double, string> number in numberSet)
foreach (KeyValuePair<double, string> number in numberSet)
{
testString = new LSL_Types.LSLString(new LSL_Types.LSLFloat(number.Key));
Assert.AreEqual(number.Value, testString.m_string);
@ -102,7 +102,7 @@ namespace OpenSim.Region.ScriptEngine.Common.Tests
LSL_Types.LSLString testString;
foreach(KeyValuePair<double, string> number in numberSet)
foreach (KeyValuePair<double, string> number in numberSet)
{
testString = (LSL_Types.LSLString) new LSL_Types.LSLFloat(number.Key);
Assert.AreEqual(number.Value, testString.m_string);