Thank you, sacha magne, for a patch that prevents sim chat from

being heard across whole grids.
Fixes Mantis #1855
0.6.0-stable
Melanie Thielker 2008-07-31 10:58:15 +00:00
parent af3e2c6e1c
commit b3e19359d9
1 changed files with 4 additions and 1 deletions

View File

@ -222,7 +222,10 @@ namespace OpenSim.Region.Environment.Modules.Avatar.Chat
if (presence.IsChildAgent) return;
LLVector3 fromRegionPos = fromPos + regionPos;
LLVector3 toRegionPos = presence.AbsolutePosition + regionPos;
LLVector3 toRegionPos = presence.AbsolutePosition +
new LLVector3(presence.Scene.RegionInfo.RegionLocX * Constants.RegionSize,
presence.Scene.RegionInfo.RegionLocY * Constants.RegionSize, 0);
int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos));
if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance ||