diff options
author | Melanie | 2011-11-04 01:18:37 +0000 |
---|---|---|
committer | Melanie | 2011-11-04 01:18:37 +0000 |
commit | 24235006f473cec56213705ce70df781cf9bcbc1 (patch) | |
tree | 7d0e75978d48272827c3f03f087bf79658dd16cf /OpenSim/Region/CoreModules/Avatar | |
parent | Merge branch 'master' into bigmerge (diff) | |
parent | Rename ForEachAvatar back to ForEachScenePresence. The other changes (diff) | |
download | opensim-SC-24235006f473cec56213705ce70df781cf9bcbc1.zip opensim-SC-24235006f473cec56213705ce70df781cf9bcbc1.tar.gz opensim-SC-24235006f473cec56213705ce70df781cf9bcbc1.tar.bz2 opensim-SC-24235006f473cec56213705ce70df781cf9bcbc1.tar.xz |
Merge branch 'master' into bigmerge
Conflicts:
OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs
OpenSim/Region/CoreModules/Avatar/Gods/GodsModule.cs
OpenSim/Region/CoreModules/LightShare/LightShareModule.cs
OpenSim/Region/CoreModules/World/Estate/EstateManagementModule.cs
Diffstat (limited to 'OpenSim/Region/CoreModules/Avatar')
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs | 14 | ||||
-rw-r--r-- | OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | 8 |
2 files changed, 11 insertions, 11 deletions
diff --git a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs index b16ca53..4d8fb90 100644 --- a/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Chat/ChatModule.cs | |||
@@ -45,7 +45,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat | |||
45 | private const int DEBUG_CHANNEL = 2147483647; | 45 | private const int DEBUG_CHANNEL = 2147483647; |
46 | 46 | ||
47 | private bool m_enabled = true; | 47 | private bool m_enabled = true; |
48 | private int m_saydistance = 30; | 48 | private int m_saydistance = 20; |
49 | private int m_shoutdistance = 100; | 49 | private int m_shoutdistance = 100; |
50 | private int m_whisperdistance = 10; | 50 | private int m_whisperdistance = 10; |
51 | private List<Scene> m_scenes = new List<Scene>(); | 51 | private List<Scene> m_scenes = new List<Scene>(); |
@@ -242,7 +242,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat | |||
242 | 242 | ||
243 | foreach (Scene s in m_scenes) | 243 | foreach (Scene s in m_scenes) |
244 | { | 244 | { |
245 | s.ForEachScenePresence( | 245 | // This should use ForEachClient, but clients don't have a position. |
246 | // If camera is moved into client, then camera position can be used | ||
247 | s.ForEachRootScenePresence( | ||
246 | delegate(ScenePresence presence) | 248 | delegate(ScenePresence presence) |
247 | { | 249 | { |
248 | ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y); | 250 | ILandObject Presencecheck = s.LandChannel.GetLandObject(presence.AbsolutePosition.X, presence.AbsolutePosition.Y); |
@@ -306,12 +308,10 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat | |||
306 | 308 | ||
307 | if (c.Scene != null) | 309 | if (c.Scene != null) |
308 | { | 310 | { |
309 | ((Scene)c.Scene).ForEachRootScenePresence | 311 | ((Scene)c.Scene).ForEachRootClient |
310 | ( | 312 | ( |
311 | delegate(ScenePresence presence) | 313 | delegate(IClientAPI client) |
312 | { | 314 | { |
313 | IClientAPI client = presence.ControllingClient; | ||
314 | |||
315 | // don't forward SayOwner chat from objects to | 315 | // don't forward SayOwner chat from objects to |
316 | // non-owner agents | 316 | // non-owner agents |
317 | if ((c.Type == ChatTypeEnum.Owner) && | 317 | if ((c.Type == ChatTypeEnum.Owner) && |
@@ -321,7 +321,7 @@ namespace OpenSim.Region.CoreModules.Avatar.Chat | |||
321 | 321 | ||
322 | client.SendChatMessage(c.Message, (byte)cType, CenterOfRegion, fromName, fromID, | 322 | client.SendChatMessage(c.Message, (byte)cType, CenterOfRegion, fromName, fromID, |
323 | (byte)sourceType, (byte)ChatAudibleLevel.Fully); | 323 | (byte)sourceType, (byte)ChatAudibleLevel.Fully); |
324 | receiverIDs.Add(presence.UUID); | 324 | receiverIDs.Add(client.AgentId); |
325 | } | 325 | } |
326 | ); | 326 | ); |
327 | (c.Scene as Scene).EventManager.TriggerOnChatToClients( | 327 | (c.Scene as Scene).EventManager.TriggerOnChatToClients( |
diff --git a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs index 00556c4..bb2cd1f 100644 --- a/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs +++ b/OpenSim/Region/CoreModules/Avatar/Dialog/DialogModule.cs | |||
@@ -98,9 +98,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
98 | 98 | ||
99 | public void SendGeneralAlert(string message) | 99 | public void SendGeneralAlert(string message) |
100 | { | 100 | { |
101 | m_scene.ForEachRootScenePresence(delegate(ScenePresence presence) | 101 | m_scene.ForEachRootClient(delegate(IClientAPI client) |
102 | { | 102 | { |
103 | presence.ControllingClient.SendAlertMessage(message); | 103 | client.SendAlertMessage(message); |
104 | }); | 104 | }); |
105 | } | 105 | } |
106 | 106 | ||
@@ -162,9 +162,9 @@ namespace OpenSim.Region.CoreModules.Avatar.Dialog | |||
162 | public void SendNotificationToUsersInRegion( | 162 | public void SendNotificationToUsersInRegion( |
163 | UUID fromAvatarID, string fromAvatarName, string message) | 163 | UUID fromAvatarID, string fromAvatarName, string message) |
164 | { | 164 | { |
165 | m_scene.ForEachRootScenePresence(delegate(ScenePresence presence) | 165 | m_scene.ForEachRootClient(delegate(IClientAPI client) |
166 | { | 166 | { |
167 | presence.ControllingClient.SendBlueBoxMessage(fromAvatarID, fromAvatarName, message); | 167 | client.SendBlueBoxMessage(fromAvatarID, fromAvatarName, message); |
168 | }); | 168 | }); |
169 | } | 169 | } |
170 | 170 | ||