diff options
Diffstat (limited to 'OpenSim/Region')
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs index 26b0719..6b272fb 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | |||
@@ -292,8 +292,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
292 | { | 292 | { |
293 | // flat terrain spead up things | 293 | // flat terrain spead up things |
294 | 294 | ||
295 | // prequant and quant 2 bits both | 295 | header.DCOffset -= 0.5f; |
296 | header.QuantWBits = 0x04; | 296 | |
297 | header.QuantWBits = 0x00; | ||
297 | output.PackBits(header.QuantWBits, 8); | 298 | output.PackBits(header.QuantWBits, 8); |
298 | output.PackFloat(header.DCOffset); | 299 | output.PackFloat(header.DCOffset); |
299 | output.PackBits(1, 16); | 300 | output.PackBits(1, 16); |
@@ -302,8 +303,8 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
302 | else | 303 | else |
303 | output.PackBits(header.PatchIDs, 10); | 304 | output.PackBits(header.PatchIDs, 10); |
304 | 305 | ||
305 | output.PackBits(NEGATIVE_VALUE, 3); | 306 | // output.PackBits(NEGATIVE_VALUE, 3); |
306 | output.PackBits(0x20, 6); | 307 | // output.PackBits(0x20, 6); |
307 | // and thats all | 308 | // and thats all |
308 | output.PackBits(ZERO_EOB, 2); | 309 | output.PackBits(ZERO_EOB, 2); |
309 | return; | 310 | return; |