diff options
author | UbitUmarov | 2015-09-23 22:34:05 +0100 |
---|---|---|
committer | UbitUmarov | 2015-09-23 22:35:27 +0100 |
commit | c83351b9c05d7dcc985ea8b3e34e7c92a0163553 (patch) | |
tree | d6beefa774583563e6e76c81e07b7f03505c1a5d | |
parent | speedup flat terrain patchs encoding, plus a few minor changes. (diff) | |
download | opensim-SC_OLD-c83351b9c05d7dcc985ea8b3e34e7c92a0163553.zip opensim-SC_OLD-c83351b9c05d7dcc985ea8b3e34e7c92a0163553.tar.gz opensim-SC_OLD-c83351b9c05d7dcc985ea8b3e34e7c92a0163553.tar.bz2 opensim-SC_OLD-c83351b9c05d7dcc985ea8b3e34e7c92a0163553.tar.xz |
fix the DC term on flat patch encoding
-rw-r--r-- | OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs index d77e1d7..26b0719 100644 --- a/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs +++ b/OpenSim/Region/Framework/Scenes/TerrainCompressor.cs | |||
@@ -293,7 +293,7 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
293 | // flat terrain spead up things | 293 | // flat terrain spead up things |
294 | 294 | ||
295 | // prequant and quant 2 bits both | 295 | // prequant and quant 2 bits both |
296 | header.QuantWBits = 0x00; | 296 | header.QuantWBits = 0x04; |
297 | output.PackBits(header.QuantWBits, 8); | 297 | output.PackBits(header.QuantWBits, 8); |
298 | output.PackFloat(header.DCOffset); | 298 | output.PackFloat(header.DCOffset); |
299 | output.PackBits(1, 16); | 299 | output.PackBits(1, 16); |
@@ -301,9 +301,9 @@ namespace OpenSim.Region.ClientStack.LindenUDP | |||
301 | output.PackBits(header.PatchIDs, 32); | 301 | output.PackBits(header.PatchIDs, 32); |
302 | else | 302 | else |
303 | output.PackBits(header.PatchIDs, 10); | 303 | output.PackBits(header.PatchIDs, 10); |
304 | // dc term is - max quant value | 304 | |
305 | output.PackBits(NEGATIVE_VALUE, 3); | 305 | output.PackBits(NEGATIVE_VALUE, 3); |
306 | output.PackBits(3, 2); | 306 | output.PackBits(0x20, 6); |
307 | // and thats all | 307 | // and thats all |
308 | output.PackBits(ZERO_EOB, 2); | 308 | output.PackBits(ZERO_EOB, 2); |
309 | return; | 309 | return; |