It is from ragezone but it isn't complete code, only the idea. And seems - it is wrong idea

There are a lot of bugs here and seems every piece of MAP_HEIGHT data should be tested in real location. For example I think nodes (six bytes like 0x00 00 C0 ED C0 ED) have zero 3rd byte for positive values and 3rd byte is equal to 5th if negative value.