aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/OpenSim/Region/Framework/Scenes
diff options
context:
space:
mode:
Diffstat (limited to 'OpenSim/Region/Framework/Scenes')
-rw-r--r--OpenSim/Region/Framework/Scenes/TerrainCompressor.cs7
1 files changed, 5 insertions, 2 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
index 396f1e8..fc8f8cd 100644
--- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
+++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs
@@ -119,6 +119,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP
119 xPieces[0] = patchX; // patch X dimension 119 xPieces[0] = patchX; // patch X dimension
120 yPieces[0] = patchY; 120 yPieces[0] = patchY;
121 121
122 return CreateLandPacket(terrData, xPieces, yPieces);
123 }
124
125 public static LayerDataPacket CreateLandPacket(TerrainData terrData, int[] xPieces, int[] yPieces)
126 {
122 byte landPacketType = (byte)TerrainPatch.LayerType.Land; 127 byte landPacketType = (byte)TerrainPatch.LayerType.Land;
123 if (terrData.SizeX > Constants.RegionSize || terrData.SizeY > Constants.RegionSize) 128 if (terrData.SizeX > Constants.RegionSize || terrData.SizeY > Constants.RegionSize)
124 { 129 {
@@ -148,8 +153,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP
148 /// Array of indexes in the grid of patches. 153 /// Array of indexes in the grid of patches.
149 /// </param> 154 /// </param>
150 /// <param name="type"></param> 155 /// <param name="type"></param>
151 /// <param name="pRegionSizeX"></param>
152 /// <param name="pRegionSizeY"></param>
153 /// <returns></returns> 156 /// <returns></returns>
154 public static LayerDataPacket CreateLandPacket(TerrainData terrData, int[] x, int[] y, byte type) 157 public static LayerDataPacket CreateLandPacket(TerrainData terrData, int[] x, int[] y, byte type)
155 { 158 {