aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
authorUbitUmarov2018-07-14 16:58:09 +0100
committerUbitUmarov2018-07-14 16:58:09 +0100
commitdd508d4c4ff4ce58f57716253681cfd1000c6213 (patch)
treef718c4661e6b1eb7ee592f7448f694b8d5d5afb9 /OpenSim/Region
parentsave a sqrt call (diff)
downloadopensim-SC-dd508d4c4ff4ce58f57716253681cfd1000c6213.zip
opensim-SC-dd508d4c4ff4ce58f57716253681cfd1000c6213.tar.gz
opensim-SC-dd508d4c4ff4ce58f57716253681cfd1000c6213.tar.bz2
opensim-SC-dd508d4c4ff4ce58f57716253681cfd1000c6213.tar.xz
use Vector.Distance not util..
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 }