From 3658015de8f614b99f116b2971957307f0960c55 Mon Sep 17 00:00:00 2001 From: MW Date: Sat, 9 Jun 2007 11:13:02 +0000 Subject: Number of small changes. --- OpenSim/OpenSim.World/Estate/EstateManager.cs | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'OpenSim/OpenSim.World/Estate') diff --git a/OpenSim/OpenSim.World/Estate/EstateManager.cs b/OpenSim/OpenSim.World/Estate/EstateManager.cs index 85d9b0c..c94587a 100644 --- a/OpenSim/OpenSim.World/Estate/EstateManager.cs +++ b/OpenSim/OpenSim.World/Estate/EstateManager.cs @@ -217,18 +217,22 @@ namespace OpenSim.world.Estate public void sendRegionInfoPacketToAll() { - foreach (OpenSim.world.Avatar av in m_world.Avatars.Values) - { - this.sendRegionInfoPacket(av.ControllingClient); - } + List avatars = m_world.RequestAvatarList(); + + for (int i = 0; i < avatars.Count; i++) + { + this.sendRegionInfoPacket(avatars[i].ControllingClient); + } } public void sendRegionHandshakeToAll() { - foreach (OpenSim.world.Avatar av in m_world.Avatars.Values) + List avatars = m_world.RequestAvatarList(); + + for (int i = 0; i < avatars.Count; i++) { - av.SendRegionHandshake(); - } + this.sendRegionHandshake(avatars[i].ControllingClient); + } } public void sendRegionInfoPacket(IClientAPI remote_client) @@ -259,5 +263,10 @@ namespace OpenSim.world.Estate remote_client.OutPacket(regionInfoPacket); } + public void sendRegionHandshake(IClientAPI remoteClient) + { + remoteClient.SendRegionHandshake(m_regInfo); + } + } } -- cgit v1.1