aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ScriptEngine/Shared/Api
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ScriptEngine/Shared/Api')
-rw-r--r--OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs4
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
index 7162226..24cceea 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -351,7 +351,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
351 q = avatar.Rotation * q; 351 q = avatar.Rotation * q;
352 } 352 }
353 353
354 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q.X, q.Y, q.Z, q.W); 354 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q);
355 LSL_Types.Vector3 forward_dir = (new LSL_Types.Vector3(1, 0, 0) * r); 355 LSL_Types.Vector3 forward_dir = (new LSL_Types.Vector3(1, 0, 0) * r);
356 double mag_fwd = LSL_Types.Vector3.Mag(forward_dir); 356 double mag_fwd = LSL_Types.Vector3.Mag(forward_dir);
357 357
@@ -478,7 +478,7 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
478 q = avatar.Rotation * q; 478 q = avatar.Rotation * q;
479 } 479 }
480 480
481 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q.X, q.Y, q.Z, q.W); 481 LSL_Types.Quaternion r = new LSL_Types.Quaternion(q);
482 LSL_Types.Vector3 forward_dir = (new LSL_Types.Vector3(1, 0, 0) * r); 482 LSL_Types.Vector3 forward_dir = (new LSL_Types.Vector3(1, 0, 0) * r);
483 double mag_fwd = LSL_Types.Vector3.Mag(forward_dir); 483 double mag_fwd = LSL_Types.Vector3.Mag(forward_dir);
484 bool attached = (SensePoint.ParentGroup.AttachmentPoint != 0); 484 bool attached = (SensePoint.ParentGroup.AttachmentPoint != 0);