the new function must be declared as :
Code:
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 :

Code:
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 :

Code:
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

Last edited by Wjbender; 04/11/15 17:03.

Compulsive compiler