aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.World/Estate
diff options
context:
space:
mode:
authorMW2007-06-09 11:13:02 +0000
committerMW2007-06-09 11:13:02 +0000
commit3658015de8f614b99f116b2971957307f0960c55 (patch)
tree491156d6c9a5319bdf032c94abd70784c157854e /OpenSim/OpenSim.World/Estate
parentProtip: Check for obvious errors before submitting (diff)
downloadopensim-SC-3658015de8f614b99f116b2971957307f0960c55.zip
opensim-SC-3658015de8f614b99f116b2971957307f0960c55.tar.gz
opensim-SC-3658015de8f614b99f116b2971957307f0960c55.tar.bz2
opensim-SC-3658015de8f614b99f116b2971957307f0960c55.tar.xz
Number of small changes.
Diffstat (limited to 'OpenSim/OpenSim.World/Estate')
-rw-r--r--OpenSim/OpenSim.World/Estate/EstateManager.cs23
1 files changed, 16 insertions, 7 deletions
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
217 217
218 public void sendRegionInfoPacketToAll() 218 public void sendRegionInfoPacketToAll()
219 { 219 {
220 foreach (OpenSim.world.Avatar av in m_world.Avatars.Values) 220 List<Avatar> avatars = m_world.RequestAvatarList();
221 { 221
222 this.sendRegionInfoPacket(av.ControllingClient); 222 for (int i = 0; i < avatars.Count; i++)
223 } 223 {
224 this.sendRegionInfoPacket(avatars[i].ControllingClient);
225 }
224 } 226 }
225 227
226 public void sendRegionHandshakeToAll() 228 public void sendRegionHandshakeToAll()
227 { 229 {
228 foreach (OpenSim.world.Avatar av in m_world.Avatars.Values) 230 List<Avatar> avatars = m_world.RequestAvatarList();
231
232 for (int i = 0; i < avatars.Count; i++)
229 { 233 {
230 av.SendRegionHandshake(); 234 this.sendRegionHandshake(avatars[i].ControllingClient);
231 } 235 }
232 } 236 }
233 237
234 public void sendRegionInfoPacket(IClientAPI remote_client) 238 public void sendRegionInfoPacket(IClientAPI remote_client)
@@ -259,5 +263,10 @@ namespace OpenSim.world.Estate
259 remote_client.OutPacket(regionInfoPacket); 263 remote_client.OutPacket(regionInfoPacket);
260 } 264 }
261 265
266 public void sendRegionHandshake(IClientAPI remoteClient)
267 {
268 remoteClient.SendRegionHandshake(m_regInfo);
269 }
270
262 } 271 }
263} 272}