llApplyImpulse now accepts any non-zero integer as not FALSE
parent
10c9059886
commit
c1e239dedc
|
@ -1665,15 +1665,7 @@ namespace OpenSim.Region.ScriptEngine.Common
|
|||
if (force.z > 20000)
|
||||
force.z = 20000;
|
||||
|
||||
if (local == 1)
|
||||
{
|
||||
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);
|
||||
}
|
||||
m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), local != 0);
|
||||
}
|
||||
|
||||
public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local)
|
||||
|
|
|
@ -1517,15 +1517,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
|
|||
if (force.z > 20000)
|
||||
force.z = 20000;
|
||||
|
||||
if (local == 1)
|
||||
{
|
||||
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);
|
||||
}
|
||||
m_host.ApplyImpulse(new LLVector3((float)force.x, (float)force.y, (float)force.z), local != 0);
|
||||
}
|
||||
|
||||
public void llApplyRotationalImpulse(LSL_Types.Vector3 force, int local)
|
||||
|
|
Loading…
Reference in New Issue