aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
Diffstat (limited to '')
-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 cc98bbb..2b37adc 100644
--- a/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
+++ b/OpenSim/Region/ScriptEngine/Shared/Api/Implementation/Plugins/SensorRepeat.cs
@@ -555,13 +555,13 @@ namespace OpenSim.Region.ScriptEngine.Shared.Api.Plugins
555 return; 555 return;
556 556
557 toRegionPos = presence.AbsolutePosition; 557 toRegionPos = presence.AbsolutePosition;
558 dis = Util.GetDistanceTo(toRegionPos, fromRegionPos); 558 dis = Vector3.Distance(toRegionPos, fromRegionPos);
559 if (presence.IsSatOnObject && presence.ParentPart != null && 559 if (presence.IsSatOnObject && presence.ParentPart != null &&
560 presence.ParentPart.ParentGroup != null && 560 presence.ParentPart.ParentGroup != null &&
561 presence.ParentPart.ParentGroup.RootPart != null) 561 presence.ParentPart.ParentGroup.RootPart != null)
562 { 562 {
563 Vector3 rpos = presence.ParentPart.ParentGroup.RootPart.AbsolutePosition; 563 Vector3 rpos = presence.ParentPart.ParentGroup.RootPart.AbsolutePosition;
564 double dis2 = Util.GetDistanceTo(rpos, fromRegionPos); 564 double dis2 = Vector3.Distance(rpos, fromRegionPos);
565 if (dis > dis2) 565 if (dis > dis2)
566 dis = dis2; 566 dis = dis2;
567 } 567 }