aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs')
-rw-r--r--OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs19
1 files changed, 3 insertions, 16 deletions
diff --git a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
index 3b0c775..dbe85d0 100644
--- a/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
+++ b/OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs
@@ -1355,22 +1355,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP
1355 { 1355 {
1356 try 1356 try
1357 { 1357 {
1358 int PatchesAssumedToFit = 3; 1358 List<LayerDataPacket> packets = OpenSimTerrainCompressor.CreateTerrainPatchsPacket(terrData, px, py);
1359 for (int pcnt = 0; pcnt < px.Length; pcnt += PatchesAssumedToFit) 1359 foreach(LayerDataPacket pkt in packets)
1360 { 1360 OutPacket(pkt, ThrottleOutPacketType.Land);
1361 int remaining = Math.Min(px.Length - pcnt, PatchesAssumedToFit);
1362 int[] xPatches = new int[remaining];
1363 int[] yPatches = new int[remaining];
1364 for (int ii = 0; ii < remaining; ii++)
1365 {
1366 xPatches[ii] = px[pcnt + ii];
1367 yPatches[ii] = py[pcnt + ii];
1368 }
1369 LayerDataPacket layerpack = OpenSimTerrainCompressor.CreateLandPacket(terrData, xPatches, yPatches);
1370 // DebugSendingPatches("SendLayerDataInternal", xPatches, yPatches);
1371
1372 OutPacket(layerpack, ThrottleOutPacketType.Land);
1373 }
1374 } 1361 }
1375 catch (Exception e) 1362 catch (Exception e)
1376 { 1363 {