aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs14
1 files changed, 12 insertions, 2 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 1f522e8..9d39daa 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -1323,7 +1323,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1323 } 1323 }
1324 } 1324 }
1325 1325
1326 LayerDataPacket layerpack = TerrainCompressor.CreateLayerDataPacket(patches, TerrainPatch.LayerType.Wind); 1326 byte layerType = (byte)TerrainPatch.LayerType.Wind;
1327 if (m_scene.RegionInfo.RegionSizeX > Constants.RegionSize || m_scene.RegionInfo.RegionSizeY > Constants.RegionSize)
1328 layerType = (byte)TerrainPatch.LayerType.WindExtended;
1329
1330 LayerDataPacket layerpack = OpenSimTerrainCompressor.CreateLayerDataPacket(patches, layerType,
1331 (int)m_scene.RegionInfo.RegionSizeX, (int)m_scene.RegionInfo.RegionSizeY);
1327 layerpack.Header.Zerocoded = true; 1332 layerpack.Header.Zerocoded = true;
1328 OutPacket(layerpack, ThrottleOutPacketType.Wind); 1333 OutPacket(layerpack, ThrottleOutPacketType.Wind);
1329 } 1334 }
@@ -1347,7 +1352,12 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1347 } 1352 }
1348 } 1353 }
1349 1354
1350 LayerDataPacket layerpack = TerrainCompressor.CreateLayerDataPacket(patches, TerrainPatch.LayerType.Cloud); 1355 byte layerType = (byte)TerrainPatch.LayerType.Cloud;
1356 if (m_scene.RegionInfo.RegionSizeX > Constants.RegionSize || m_scene.RegionInfo.RegionSizeY > Constants.RegionSize)
1357 layerType = (byte)TerrainPatch.LayerType.CloudExtended;
1358
1359 LayerDataPacket layerpack = OpenSimTerrainCompressor.CreateLayerDataPacket(patches, layerType,
1360 (int)m_scene.RegionInfo.RegionSizeX, (int)m_scene.RegionInfo.RegionSizeY);
1351 layerpack.Header.Zerocoded = true; 1361 layerpack.Header.Zerocoded = true;
1352 OutPacket(layerpack, ThrottleOutPacketType.Cloud); 1362 OutPacket(layerpack, ThrottleOutPacketType.Cloud);
1353 } 1363 }