From 3d938f76b7c2f8ede862f9979383d79dfb21372c Mon Sep 17 00:00:00 2001 From: Adam Johnson Date: Fri, 7 Dec 2007 08:54:31 +0000 Subject: Updates to LibSL revision 1498. Thanks Johan! --- OpenSim/Region/Environment/Modules/ChatModule.cs | 2 +- OpenSim/Region/Environment/Modules/WorldCommModule.cs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'OpenSim/Region/Environment/Modules') diff --git a/OpenSim/Region/Environment/Modules/ChatModule.cs b/OpenSim/Region/Environment/Modules/ChatModule.cs index c93804f..8af7b49 100644 --- a/OpenSim/Region/Environment/Modules/ChatModule.cs +++ b/OpenSim/Region/Environment/Modules/ChatModule.cs @@ -192,7 +192,7 @@ namespace OpenSim.Region.Environment.Modules scene.RegionInfo.RegionLocY * 256, 0); dis = - Math.Abs((int)avatarRegionPos.GetDistanceTo(fromRegionPos)); + Math.Abs((int) Util.GetDistanceTo(avatarRegionPos, fromRegionPos)); switch (e.Type) { diff --git a/OpenSim/Region/Environment/Modules/WorldCommModule.cs b/OpenSim/Region/Environment/Modules/WorldCommModule.cs index a31b484..0dad998 100644 --- a/OpenSim/Region/Environment/Modules/WorldCommModule.cs +++ b/OpenSim/Region/Environment/Modules/WorldCommModule.cs @@ -135,7 +135,7 @@ namespace OpenSim.Region.Environment.Modules { m_listenerManager.Remove(handle); } - + // This method scans nearby objects and determines if they are listeners, // and if so if this message fits the filter. If it does, then // enqueue the message for delivery to the objects listen event handler. @@ -171,9 +171,9 @@ namespace OpenSim.Region.Environment.Modules double dis = 0; if (source != null) - dis = sPart.AbsolutePosition.GetDistanceTo(source.AbsolutePosition); + dis = Util.GetDistanceTo(sPart.AbsolutePosition, source.AbsolutePosition); else - dis = sPart.AbsolutePosition.GetDistanceTo(avatar.AbsolutePosition); + dis = Util.GetDistanceTo(sPart.AbsolutePosition, avatar.AbsolutePosition); switch (type) { @@ -490,4 +490,4 @@ namespace OpenSim.Region.Environment.Modules return m_id; } } -} \ No newline at end of file +} -- cgit v1.1