mirror of
https://github.com/opensim/opensim.git
synced 2026-07-02 00:15:45 +08:00
Formatting cleanup.
This commit is contained in:
@@ -2856,7 +2856,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
if (m_TransferModule != null)
|
||||
{
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
ScriptSleep(2000);
|
||||
}
|
||||
@@ -3668,7 +3668,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
bucket);
|
||||
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -5968,7 +5968,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
bucket);
|
||||
|
||||
if (m_TransferModule != null)
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {} );
|
||||
m_TransferModule.SendInstantMessage(msg, delegate(bool success) {});
|
||||
}
|
||||
|
||||
public void llSetVehicleType(int type)
|
||||
@@ -6008,7 +6008,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
if (!m_host.ParentGroup.IsDeleted)
|
||||
{
|
||||
m_host.ParentGroup.RootPart.SetVehicleVectorParam(param,
|
||||
new PhysicsVector((float)vec.x, (float)vec.y, (float)vec.z) );
|
||||
new PhysicsVector((float)vec.x, (float)vec.y, (float)vec.z));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -7039,7 +7039,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
return (double)Math.Log(val);
|
||||
}
|
||||
|
||||
public LSL_List llGetAnimationList( string id )
|
||||
public LSL_List llGetAnimationList(string id)
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
|
||||
|
||||
@@ -586,7 +586,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
|
||||
// Check for hostname , attempt to make a hglink
|
||||
// and convert the regionName to the target region
|
||||
if ( regionName.Contains(".") && regionName.Contains(":"))
|
||||
if (regionName.Contains(".") && regionName.Contains(":"))
|
||||
{
|
||||
// Try to link the region
|
||||
RegionInfo regInfo = HGHyperlink.TryLinkRegion(World,
|
||||
|
||||
@@ -206,7 +206,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.ScriptBase
|
||||
// DO NOT THROW JUST THE INNER EXCEPTION!
|
||||
// FriendlyErrors depends on getting the whole exception!
|
||||
//
|
||||
if ( !(tie.InnerException is EventAbortException) )
|
||||
if (!(tie.InnerException is EventAbortException))
|
||||
{
|
||||
throw;
|
||||
}
|
||||
|
||||
@@ -1407,7 +1407,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
throw new PrologException(Atom.a("instantiation_error"),
|
||||
"Arg 1 Char and arg 2 Code are both unbound variables");
|
||||
|
||||
return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt} )));
|
||||
return YP.unify(Char, Atom.a(new String(new char[] {(char)codeInt})));
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -2343,7 +2343,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.YieldProlog
|
||||
string results = "";
|
||||
for (Match m = Regex.Match(inData,inPattern); m.Success; m=m.NextMatch())
|
||||
{
|
||||
//m_log.Debug( m );
|
||||
//m_log.Debug(m);
|
||||
results += presep+ m + postsep;
|
||||
}
|
||||
return results;
|
||||
|
||||
@@ -676,20 +676,20 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
|
||||
// It's possible that we don't have an assignment, in which case
|
||||
// the child will be null and we only print the semicolon.
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^
|
||||
ForLoopStatement s = (ForLoopStatement) fl.kids.Pop();
|
||||
if (null != s)
|
||||
{
|
||||
retstr += GenerateForLoopStatement(s);
|
||||
}
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^^^^
|
||||
retstr += GenerateNode((SYMBOL) fl.kids.Pop());
|
||||
retstr += Generate("; ");
|
||||
// for ( x = 0 ; x < 10 ; x++ )
|
||||
// ^^^^^
|
||||
// for (x = 0; x < 10; x++)
|
||||
// ^^^
|
||||
retstr += GenerateForLoopStatement((ForLoopStatement) fl.kids.Pop());
|
||||
retstr += GenerateLine(")");
|
||||
|
||||
|
||||
@@ -573,7 +573,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
display--;
|
||||
|
||||
string severity = "Error";
|
||||
if ( CompErr.IsWarning )
|
||||
if (CompErr.IsWarning)
|
||||
{
|
||||
severity = "Warning";
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.CodeTools
|
||||
// It's possible that a child is null, for instance when the
|
||||
// assignment part in a for-loop is left out, ie:
|
||||
//
|
||||
// for ( ; i < 10; i++)
|
||||
// for (; i < 10; i++)
|
||||
// {
|
||||
// ...
|
||||
// }
|
||||
|
||||
@@ -447,7 +447,7 @@ namespace OpenSim.Region.ScriptEngine.Shared
|
||||
// down-cast from Object to the correct type.
|
||||
// Note: no checks for item index being valid are performed
|
||||
|
||||
public LSL_Types.LSLFloat GetLSLFloatItem( int itemIndex )
|
||||
public LSL_Types.LSLFloat GetLSLFloatItem(int itemIndex)
|
||||
{
|
||||
if (m_data[itemIndex] is LSL_Types.LSLInteger)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user