diff options
Diffstat (limited to '')
-rw-r--r-- | OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs b/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs index 02558a9..341412a 100644 --- a/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs +++ b/OpenSim/Region/Environment/Modules/World/Land/LandChannel.cs | |||
@@ -29,7 +29,6 @@ using System; | |||
29 | using System.Collections.Generic; | 29 | using System.Collections.Generic; |
30 | using Axiom.Math; | 30 | using Axiom.Math; |
31 | using libsecondlife; | 31 | using libsecondlife; |
32 | using libsecondlife.Packets; | ||
33 | using OpenSim.Framework; | 32 | using OpenSim.Framework; |
34 | using OpenSim.Region.Environment.Interfaces; | 33 | using OpenSim.Region.Environment.Interfaces; |
35 | using OpenSim.Region.Environment.Scenes; | 34 | using OpenSim.Region.Environment.Scenes; |
@@ -521,7 +520,6 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
521 | byte[] byteArray = new byte[LAND_BLOCKS_PER_PACKET]; | 520 | byte[] byteArray = new byte[LAND_BLOCKS_PER_PACKET]; |
522 | int byteArrayCount = 0; | 521 | int byteArrayCount = 0; |
523 | int sequenceID = 0; | 522 | int sequenceID = 0; |
524 | ParcelOverlayPacket packet; | ||
525 | 523 | ||
526 | int y; | 524 | int y; |
527 | for (y = 0; y < 64; y++) | 525 | for (y = 0; y < 64; y++) |
@@ -595,11 +593,8 @@ namespace OpenSim.Region.Environment.Modules.World.Land | |||
595 | byteArrayCount++; | 593 | byteArrayCount++; |
596 | if (byteArrayCount >= LAND_BLOCKS_PER_PACKET) | 594 | if (byteArrayCount >= LAND_BLOCKS_PER_PACKET) |
597 | { | 595 | { |
598 | byteArrayCount = 0; | 596 | remote_client.sendLandParcelOverlay(byteArray, sequenceID); |
599 | packet = (ParcelOverlayPacket) PacketPool.Instance.GetPacket(PacketType.ParcelOverlay); | 597 | byteArrayCount = 0; |
600 | packet.ParcelData.Data = byteArray; | ||
601 | packet.ParcelData.SequenceID = sequenceID; | ||
602 | remote_client.OutPacket(packet, ThrottleOutPacketType.Task); | ||
603 | sequenceID++; | 598 | sequenceID++; |
604 | byteArray = new byte[LAND_BLOCKS_PER_PACKET]; | 599 | byteArray = new byte[LAND_BLOCKS_PER_PACKET]; |
605 | } | 600 | } |