[quote]all the terrain lower than 0 on the map turns into extremely tall terrain, like the short isn’t signed.
[/quote]
In 1.6 the following goes wrong:
int i = (short)(value & 0xffff);
It seems the mask is applied after the cast.
The bug was found and reported by ‘lordus’. (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6442508)
You can fix it by removing the mask (it’s not necessary anyway).