Index: edit.c ================================================================== --- edit.c +++ edit.c @@ -972,10 +972,16 @@ d=1; annihilate(); pfwidth=x; pfheight=y; break; + case 'V': + p=import_numbers(p+1,&x,0); + if(!p || *p) goto bad; + level_version=x; + level_changed=0; + break; case '@': free(level_title); level_title=import_string(p+1); break; case '%': Index: export.doc ================================================================== --- export.doc +++ export.doc @@ -30,10 +30,15 @@ D width height The play field dimensions. The width and height must be 1 to 64. This line must come before any objects are listed, and is mandatory. +V version + This command never occurs in levels exported from Free Hero Mesh, + although it can optionally occur in imported levels. If it is specified, + then it sets the level version number. + x y $class image misc1 misc2 misc3 dir Specify an object. Objects are listed starting from the top left corner, going right, and within each cell the objects are listed from bottom to top. Coordinates are one-based. The image is a number (0 for the first image), misc1 to misc3 are misc values (see below), and dir is also a