llApplyImpulse now accepts any non-zero integer as not FALSE

0.6.0-stable
Dahlia Trimble 2008-07-25 02:06:40 +00:00
parent 10c9059886
commit c1e239dedc
2 changed files with 5 additions and 21 deletions

View File

@ -1659,21 +1659,13 @@ namespace OpenSim.Region.ScriptEngine.Common
//No energy force yet //No energy force yet
if (force.x > 20000) if (force.x > 20000)
force.x = 20000; force.x = 20000;
if (force.y > 20000) if (force.y > 20000)
force.y = 20000; force.y = 20000;
if (force.z > 20000) if (force.z > 20000)
force.z = 20000; force.z = 20000;
if (local == 1) m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), local != 0);
{
m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), true);
}
else
{
m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z), false);
}
} }
public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local)

View File

@ -1517,15 +1517,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
if (force.z > 20000) if (force.z > 20000)
force.z = 20000; force.z = 20000;
if (local == 1) m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), local != 0);
{
m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), true);
}
else
{
m_host.ApplyImpulse(new LLVector3((float)force.x,(float)force.y,(float)force.z), false);
}
} }
public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local) public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local)