aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs2
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs6
2 files changed, 6 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index dbb61fd..6623165 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -2318,6 +2318,8 @@ namespace OpenSim.Region.ScriptEngine.Common
2318 public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) 2318 public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param)
2319 { 2319 {
2320 m_host.AddScriptLPS(1); 2320 m_host.AddScriptLPS(1);
2321 if (Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s))
2322 return;
2321 bool found = false; 2323 bool found = false;
2322 2324
2323 float dist = (float)llVecDist(llGetPos(), pos); 2325 float dist = (float)llVecDist(llGetPos(), pos);
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
index bff63f1..0cfa06f 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/LSL_Api.cs
@@ -2200,13 +2200,15 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api
2200 2200
2201 public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param) 2201 public void llRezAtRoot(string inventory, LSL_Types.Vector3 pos, LSL_Types.Vector3 vel, LSL_Types.Quaternion rot, int param)
2202 { 2202 {
2203 m_host.AddScriptLPS(1);
2204
2205 if (Double.IsNaN(rot.x) || Double.IsNaN(rot.y) || Double.IsNaN(rot.z) || Double.IsNaN(rot.s))
2206 return;
2203 float dist = (float)llVecMag(llGetPos() - pos); 2207 float dist = (float)llVecMag(llGetPos() - pos);
2204 2208
2205 if (dist > m_ScriptDistanceFactor * 10.0f) 2209 if (dist > m_ScriptDistanceFactor * 10.0f)
2206 return; 2210 return;
2207 2211
2208 m_host.AddScriptLPS(1);
2209
2210 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory) 2212 foreach (KeyValuePair<UUID, TaskInventoryItem> inv in m_host.TaskInventory)
2211 { 2213 {
2212 if (inv.Value.Name == inventory) 2214 if (inv.Value.Name == inventory)