mirror of
https://bitbucket.org/s_l_teichmann/mtsatellite
synced 2024-12-24 01:00:18 +01:00
Ported new map block offset in version >= 27 from C++ mapper.
Needs testing.
See 21444d00c3
This commit is contained in:
parent
833cc15d73
commit
90279506d1
@ -105,9 +105,14 @@ func NewDecodedBlock(data []byte, colors *Colors) (db *DecodedBlock, err error)
|
|||||||
|
|
||||||
uncompressedLen := nodeCount * (contentWidth + paramsWidth)
|
uncompressedLen := nodeCount * (contentWidth + paramsWidth)
|
||||||
|
|
||||||
offset := 2
|
var offset int
|
||||||
if version >= 22 {
|
switch {
|
||||||
|
case version >= 27:
|
||||||
|
offset = 6
|
||||||
|
case version >= 22:
|
||||||
offset = 4
|
offset = 4
|
||||||
|
default:
|
||||||
|
offset = 2
|
||||||
}
|
}
|
||||||
|
|
||||||
zr := zlibReaderPool.Get().(interface {
|
zr := zlibReaderPool.Get().(interface {
|
||||||
|
Loading…
Reference in New Issue
Block a user