diff options
author | lbsa71 | 2007-09-20 13:04:51 +0000 |
---|---|---|
committer | lbsa71 | 2007-09-20 13:04:51 +0000 |
commit | 7335e5710bd0c22c9e5bd9fa0b576d0985d2fba9 (patch) | |
tree | 866c1cf215fddc3404181c679783f903c925e000 /OpenSim/Region/Environment/EstateManager.cs | |
parent | * moved SceneManager to RegionApplicationBase (diff) | |
download | opensim-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.cs | 11 |
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; | |||
34 | using OpenSim.Framework.Interfaces; | 34 | using OpenSim.Framework.Interfaces; |
35 | using OpenSim.Framework.Types; | 35 | using OpenSim.Framework.Types; |
36 | using OpenSim.Region.Environment.Scenes; | 36 | using OpenSim.Region.Environment.Scenes; |
37 | using Avatar = OpenSim.Region.Environment.Scenes.ScenePresence; | ||
38 | 37 | ||
39 | 38 | ||
40 | namespace OpenSim.Region.Environment | 39 | namespace 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) |