aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs23
1 files changed, 5 insertions, 18 deletions
diff --git a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
index 1f23d00..74494d9 100644
--- a/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
+++ b/OpenSim/Region/ScriptEngine/Common/LSL_BuiltIn_Commands.cs
@@ -531,13 +531,8 @@ namespace OpenSim.Region.ScriptEngine.Common
531 { 531 {
532 m_host.AddScriptLPS(1); 532 m_host.AddScriptLPS(1);
533 LLUUID keyID = LLUUID.Zero; 533 LLUUID keyID = LLUUID.Zero;
534 try 534 LLUUID.TryParse(id, out keyID);
535 { 535
536 if (id.Length > 0) keyID = new LLUUID(id);
537 }
538 catch
539 {
540 }
541 m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SenseOnce(m_localID, m_itemID, name, keyID, type, range, arc, m_host); 536 m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SenseOnce(m_localID, m_itemID, name, keyID, type, range, arc, m_host);
542 537
543 return; 538 return;
@@ -547,13 +542,7 @@ namespace OpenSim.Region.ScriptEngine.Common
547 { 542 {
548 m_host.AddScriptLPS(1); 543 m_host.AddScriptLPS(1);
549 LLUUID keyID = LLUUID.Zero; 544 LLUUID keyID = LLUUID.Zero;
550 try 545 LLUUID.TryParse(id, out keyID);
551 {
552 if (id.Length > 0) keyID = new LLUUID(id);
553 }
554 catch
555 {
556 }
557 546
558 m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SetSenseRepeatEvent(m_localID, m_itemID, name, keyID, type, range, arc, rate, m_host); 547 m_ScriptEngine.m_ASYNCLSLCommandManager.m_SensorRepeat.SetSenseRepeatEvent(m_localID, m_itemID, name, keyID, type, range, arc, rate, m_host);
559 return; 548 return;
@@ -2252,8 +2241,6 @@ namespace OpenSim.Region.ScriptEngine.Common
2252 2241
2253 m_host.AddScriptLPS(1); 2242 m_host.AddScriptLPS(1);
2254 2243
2255 bool attachment=false; // Attachments not implemented yet. TODO: reflect real attachemnt state
2256
2257 if (m_host.ParentGroup.RootPart.m_IsAttachment && agent == m_host.ParentGroup.RootPart.m_attachedAvatar) 2244 if (m_host.ParentGroup.RootPart.m_IsAttachment && agent == m_host.ParentGroup.RootPart.m_attachedAvatar)
2258 { 2245 {
2259 // When attached, certain permissions are implicit if requested from owner 2246 // When attached, certain permissions are implicit if requested from owner
@@ -3181,7 +3168,7 @@ namespace OpenSim.Region.ScriptEngine.Common
3181 { 3168 {
3182 return Convert.ToInt32(src.Data[index]); 3169 return Convert.ToInt32(src.Data[index]);
3183 } 3170 }
3184 catch (FormatException e) 3171 catch (FormatException)
3185 { 3172 {
3186 return 0; 3173 return 0;
3187 } 3174 }
@@ -3216,7 +3203,7 @@ namespace OpenSim.Region.ScriptEngine.Common
3216 { 3203 {
3217 return Convert.ToDouble(src.Data[index]); 3204 return Convert.ToDouble(src.Data[index]);
3218 } 3205 }
3219 catch (FormatException e) 3206 catch (FormatException)
3220 { 3207 {
3221 return 0.0; 3208 return 0.0;
3222 } 3209 }