diff options
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs index 2814e92..dba6b38 100644 --- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs | |||
@@ -294,8 +294,8 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat | |||
294 | new Vector3(presence.Scene.RegionInfo.RegionLocX * Constants.RegionSize, | 294 | new Vector3(presence.Scene.RegionInfo.RegionLocX * Constants.RegionSize, |
295 | presence.Scene.RegionInfo.RegionLocY * Constants.RegionSize, 0); | 295 | presence.Scene.RegionInfo.RegionLocY * Constants.RegionSize, 0); |
296 | 296 | ||
297 | int dis = Math.Abs((int) Util.GetDistanceTo(toRegionPos, fromRegionPos)); | 297 | int dis = (int)Util.GetDistanceTo(toRegionPos, fromRegionPos); |
298 | 298 | ||
299 | if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance || | 299 | if (type == ChatTypeEnum.Whisper && dis > m_whisperdistance || |
300 | type == ChatTypeEnum.Say && dis > m_saydistance || | 300 | type == ChatTypeEnum.Say && dis > m_saydistance || |
301 | type == ChatTypeEnum.Shout && dis > m_shoutdistance) | 301 | type == ChatTypeEnum.Shout && dis > m_shoutdistance) |