aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Environment/EstateManager.cs
diff options
context:
space:
mode:
authorlbsa712007-09-20 13:04:51 +0000
committerlbsa712007-09-20 13:04:51 +0000
commit7335e5710bd0c22c9e5bd9fa0b576d0985d2fba9 (patch)
tree866c1cf215fddc3404181c679783f903c925e000 /OpenSim/Region/Environment/EstateManager.cs
parent* moved SceneManager to RegionApplicationBase (diff)
downloadopensim-SC_OLD-7335e5710bd0c22c9e5bd9fa0b576d0985d2fba9.zip
opensim-SC_OLD-7335e5710bd0c22c9e5bd9fa0b576d0985d2fba9.tar.gz
opensim-SC_OLD-7335e5710bd0c22c9e5bd9fa0b576d0985d2fba9.tar.bz2
opensim-SC_OLD-7335e5710bd0c22c9e5bd9fa0b576d0985d2fba9.tar.xz
Rev 1971 : The Lbsa71 vintage commit
* Refactored to prepare for some serious restructuring
Diffstat (limited to 'OpenSim/Region/Environment/EstateManager.cs')
-rw-r--r--OpenSim/Region/Environment/EstateManager.cs11
1 files changed, 4 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/EstateManager.cs b/OpenSim/Region/Environment/EstateManager.cs
index 30d206f..ac710ad 100644
--- a/OpenSim/Region/Environment/EstateManager.cs
+++ b/OpenSim/Region/Environment/EstateManager.cs
@@ -34,7 +34,6 @@ using OpenSim.Framework.Console;
34using OpenSim.Framework.Interfaces; 34using OpenSim.Framework.Interfaces;
35using OpenSim.Framework.Types; 35using OpenSim.Framework.Types;
36using OpenSim.Region.Environment.Scenes; 36using OpenSim.Region.Environment.Scenes;
37using Avatar = OpenSim.Region.Environment.Scenes.ScenePresence;
38 37
39 38
40namespace OpenSim.Region.Environment 39namespace OpenSim.Region.Environment
@@ -332,7 +331,7 @@ namespace OpenSim.Region.Environment
332 331
333 public void sendRegionInfoPacketToAll() 332 public void sendRegionInfoPacketToAll()
334 { 333 {
335 List<Avatar> avatars = m_scene.RequestAvatarList(); 334 List<ScenePresence> avatars = m_scene.GetAvatars();
336 335
337 for (int i = 0; i < avatars.Count; i++) 336 for (int i = 0; i < avatars.Count; i++)
338 { 337 {
@@ -342,12 +341,10 @@ namespace OpenSim.Region.Environment
342 341
343 public void sendRegionHandshakeToAll() 342 public void sendRegionHandshakeToAll()
344 { 343 {
345 List<Avatar> avatars = m_scene.RequestAvatarList(); 344 m_scene.ForEachScenePresence( delegate( ScenePresence scenePresence )
346
347 for (int i = 0; i < avatars.Count; i++)
348 { 345 {
349 sendRegionHandshake(avatars[i].ControllingClient); 346 sendRegionHandshake(scenePresence.ControllingClient);
350 } 347 });
351 } 348 }
352 349
353 public void sendRegionInfoPacket(IClientAPI remote_client) 350 public void sendRegionInfoPacket(IClientAPI remote_client)