aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/OpenSim.World/Estate
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/OpenSim.World/Estate')
-rw-r--r--OpenSim/OpenSim.World/Estate/EstateManager.cs37
1 files changed, 1 insertions, 36 deletions
diff --git a/OpenSim/OpenSim.World/Estate/EstateManager.cs b/OpenSim/OpenSim.World/Estate/EstateManager.cs
index cbcc702..85d9b0c 100644
--- a/OpenSim/OpenSim.World/Estate/EstateManager.cs
+++ b/OpenSim/OpenSim.World/Estate/EstateManager.cs
@@ -227,7 +227,7 @@ namespace OpenSim.world.Estate
227 { 227 {
228 foreach (OpenSim.world.Avatar av in m_world.Avatars.Values) 228 foreach (OpenSim.world.Avatar av in m_world.Avatars.Values)
229 { 229 {
230 this.sendRegionHandshake(av.ControllingClient); 230 av.SendRegionHandshake();
231 } 231 }
232 } 232 }
233 233
@@ -259,40 +259,5 @@ namespace OpenSim.world.Estate
259 remote_client.OutPacket(regionInfoPacket); 259 remote_client.OutPacket(regionInfoPacket);
260 } 260 }
261 261
262 public void sendRegionHandshake(IClientAPI remote_client)
263 {
264 System.Text.Encoding _enc = System.Text.Encoding.ASCII;
265 RegionHandshakePacket handshake = new RegionHandshakePacket();
266
267 handshake.RegionInfo.BillableFactor = m_regInfo.estateSettings.billableFactor;
268 handshake.RegionInfo.IsEstateManager = false;
269 handshake.RegionInfo.TerrainHeightRange00 = m_regInfo.estateSettings.terrainHeightRange0;
270 handshake.RegionInfo.TerrainHeightRange01 = m_regInfo.estateSettings.terrainHeightRange1;
271 handshake.RegionInfo.TerrainHeightRange10 = m_regInfo.estateSettings.terrainHeightRange2;
272 handshake.RegionInfo.TerrainHeightRange11 = m_regInfo.estateSettings.terrainHeightRange3;
273 handshake.RegionInfo.TerrainStartHeight00 = m_regInfo.estateSettings.terrainStartHeight0;
274 handshake.RegionInfo.TerrainStartHeight01 = m_regInfo.estateSettings.terrainStartHeight1;
275 handshake.RegionInfo.TerrainStartHeight10 = m_regInfo.estateSettings.terrainStartHeight2;
276 handshake.RegionInfo.TerrainStartHeight11 = m_regInfo.estateSettings.terrainStartHeight3;
277 handshake.RegionInfo.SimAccess = (byte)m_regInfo.estateSettings.simAccess;
278 handshake.RegionInfo.WaterHeight = m_regInfo.estateSettings.waterHeight;
279
280
281 handshake.RegionInfo.RegionFlags = (uint)m_regInfo.estateSettings.regionFlags;
282
283 handshake.RegionInfo.SimName = _enc.GetBytes(m_regInfo.estateSettings.waterHeight + "\0");
284 handshake.RegionInfo.SimOwner = m_regInfo.MasterAvatarAssignedUUID;
285 handshake.RegionInfo.TerrainBase0 = m_regInfo.estateSettings.terrainBase0;
286 handshake.RegionInfo.TerrainBase1 = m_regInfo.estateSettings.terrainBase1;
287 handshake.RegionInfo.TerrainBase2 = m_regInfo.estateSettings.terrainBase2;
288 handshake.RegionInfo.TerrainBase3 = m_regInfo.estateSettings.terrainBase3;
289 handshake.RegionInfo.TerrainDetail0 = m_regInfo.estateSettings.terrainDetail0;
290 handshake.RegionInfo.TerrainDetail1 = m_regInfo.estateSettings.terrainDetail1;
291 handshake.RegionInfo.TerrainDetail2 = m_regInfo.estateSettings.terrainDetail2;
292 handshake.RegionInfo.TerrainDetail3 = m_regInfo.estateSettings.terrainDetail3;
293 handshake.RegionInfo.CacheID = LLUUID.Random(); //I guess this is for the client to remember an old setting?
294
295 remote_client.OutPacket(handshake);
296 }
297 } 262 }
298} 263}