Thank you, sacha magne, for a patch that prevents sim chat from
being heard across whole grids. Fixes Mantis #18550.6.0-stable
parent
af3e2c6e1c
commit
b3e19359d9
|
@ -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 ||
|
||||
|
|
Loading…
Reference in New Issue