diff options
author | UbitUmarov | 2019-01-21 06:05:21 +0000 |
---|---|---|
committer | UbitUmarov | 2019-01-21 06:05:21 +0000 |
commit | 33a062612f9fafcb7b4c0e8ac60937c448ce3c10 (patch) | |
tree | e6d716b001e94e1d9274e0adc4e8513d2aa48148 /OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | |
parent | this looks more like ubode (diff) | |
download | opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.zip opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.tar.gz opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.tar.bz2 opensim-SC-33a062612f9fafcb7b4c0e8ac60937c448ce3c10.tar.xz |
remove terraindata abstraction layer, since we only have heightmap type
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/TerrainCompressor.cs')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs index 2070463..fa17102 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | |||
@@ -155,7 +155,6 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
155 | return iout; | 155 | return iout; |
156 | } | 156 | } |
157 | 157 | ||
158 | static double tt; | ||
159 | // new using terrain data and patchs indexes | 158 | // new using terrain data and patchs indexes |
160 | public static List<LayerDataPacket> CreateLayerDataPackets(TerrainData terrData, int[] map) | 159 | public static List<LayerDataPacket> CreateLayerDataPackets(TerrainData terrData, int[] map) |
161 | { | 160 | { |
@@ -180,15 +179,11 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
180 | bitpack.PackBitsFromByte(16); | 179 | bitpack.PackBitsFromByte(16); |
181 | bitpack.PackBitsFromByte(landPacketType); | 180 | bitpack.PackBitsFromByte(landPacketType); |
182 | 181 | ||
183 | tt = 0; | ||
184 | |||
185 | int s; | 182 | int s; |
186 | for (int i = 0; i < numberPatchs; i++) | 183 | for (int i = 0; i < numberPatchs; i++) |
187 | { | 184 | { |
188 | s = 2 * i; | 185 | s = 2 * i; |
189 | tt -= Util.GetTimeStampMS(); | ||
190 | CreatePatchFromTerrainData(bitpack, terrData, map[s], map[s + 1]); | 186 | CreatePatchFromTerrainData(bitpack, terrData, map[s], map[s + 1]); |
191 | tt += Util.GetTimeStampMS(); | ||
192 | 187 | ||
193 | if (bitpack.BytePos > 980 && i != numberPatchs - 1) | 188 | if (bitpack.BytePos > 980 && i != numberPatchs - 1) |
194 | { | 189 | { |