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