the new function must be declared as :
int save_hmp(char* filename,ENTITY* terrain,int skip_original_pixels);
to save the original pixel data , if you just replaced the skins with other files :
if (save_hmp("hmpfilenamehere.hmp",terrain_entity_here,0)) // success
to save the pixel data that was modified with for example bmap_lock operations ,instead :
if (save_hmp("hmpfilenamehere.hmp",terrain_entity_here,1)) // success
that's how it is for now.
yes the link is updated on the first page first post