mirror of
https://github.com/opensim/opensim.git
synced 2026-08-04 08:06:27 +08:00
Minor formatting cleanup.
This commit is contained in:
@@ -3214,7 +3214,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
SceneObjectPart targ = World.GetSceneObjectPart(target);
|
||||
if( targ == null )
|
||||
if (targ == null)
|
||||
return;
|
||||
targ.ApplyImpulse(new LLVector3((float)impulse.x, (float)impulse.y, (float)impulse.z), local != 0);
|
||||
}
|
||||
|
||||
@@ -321,7 +321,7 @@ namespace OpenSim.Region.ScriptEngine.Common.ScriptEngineBase
|
||||
{
|
||||
// ...if it is there. With mono --debug OpenSim.exe,
|
||||
// you'll get the error in the format filename:linenumber
|
||||
if(colon + 6 < t.Length && t.Substring(colon + 1, 5).Equals("line ")) colon += 6;
|
||||
if (colon + 6 < t.Length && t.Substring(colon + 1, 5).Equals("line ")) colon += 6;
|
||||
else ++colon; // else only skip the colon
|
||||
line = " at line " + Convert.ToInt32(t.Substring(colon)).ToString();
|
||||
}
|
||||
|
||||
@@ -3156,7 +3156,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
||||
{
|
||||
m_host.AddScriptLPS(1);
|
||||
SceneObjectPart targ = World.GetSceneObjectPart(target);
|
||||
if( targ == null )
|
||||
if (targ == null)
|
||||
return;
|
||||
targ.ApplyImpulse(new LLVector3((float)impulse.x, (float)impulse.y, (float)impulse.z), local != 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user