aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region')
-rw-r--r--OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
index 0e397d6..f98633f 100644
--- a/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
+++ b/OpenSim/Region/Environment/Modules/Avatar/Chat/ChatModule.cs
@@ -222,7 +222,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
222 if (presence.IsChildAgent) return; 222 if (presence.IsChildAgent) return;
223 223
224 LLVector3 fromRegionPos = fromPos + regionPos; 224 LLVector3 fromRegionPos = fromPos + regionPos;
225 LLVector3 toRegionPos = presence.AbsolutePosition + regionPos; 225 LLVector3 toRegionPos = presence.AbsolutePosition +
226 new LLVector3(presence.Scene.RegionInfo.RegionLocX * Constants.RegionSize,
227 presence.Scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
228
226 int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos)); 229 int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos));
227 230
228 if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance || 231 if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance ||