diff options
author | UbitUmarov | 2015-09-23 00:01:32 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-23 00:01:32 +0100 |
commit | ccfb561e8db04a35559cd7091680fa523d7dbe57 (patch) | |
tree | 22de22a04c25cdd3bda78a895747459d985c3f56 /OpenSim/Region/ClientStack | |
parent | fix GetPacketsQueuedCount typos in last commit (diff) | |
download | opensim-SC-ccfb561e8db04a35559cd7091680fa523d7dbe57.zip opensim-SC-ccfb561e8db04a35559cd7091680fa523d7dbe57.tar.gz opensim-SC-ccfb561e8db04a35559cd7091680fa523d7dbe57.tar.bz2 opensim-SC-ccfb561e8db04a35559cd7091680fa523d7dbe57.tar.xz |
change the encapsulation of compressed land patchs in llUDP packets
Diffstat (limited to 'OpenSim/Region/ClientStack')
-rw-r--r-- | OpenSim/Region/ClientStack/Linden/UDP/LLClientView.cs | 19 |
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 | { |