heightmap[c]=(short)(0x00ff-temp);
}
int posx,posy;
posy=Integer.parseInt(result.f.getAbsolutePath().substring(result.f.getAbsolutePath().length()-6, result.f.getAbsolutePath().length()-4));
posx=Integer.parseInt(result.f.getAbsolutePath().substring(result.f.getAbsolutePath().length()-9, result.f.getAbsolutePath().length()-7));
if(obj.mare[posy*64+posx]==null)obj.mare[posy*64+posx]=new MARE();
for(int i=0;i<16*16;i++){
obj.mare[posy*64+posx].setInnerHeight(i,heightmap[i]);
}
//this sucks but I'm too lazy atm to find a better way