Free Hero Mesh

Check-in [086b55093c]
Login
This is a mirror of the main repository for Free Hero Mesh. New tickets and changes will not be accepted at this mirror.
Overview
Comment:Correct a mistake in the level conversion
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 086b55093c3dfd8cdea22eaff8d54df8e7835ddd
User & Date: user on 2020-11-19 00:00:31
Other Links: manifest | tags
Context
2020-11-22
02:05
Fix the level conversion/loading by changing the MRU logic slightly. check-in: 1939e893b0 user: user tags: trunk
2020-11-19
00:00
Correct a mistake in the level conversion check-in: 086b55093c user: user tags: trunk
2020-11-17
00:51
Add possibility to select levels. check-in: 5b7677692b user: user tags: trunk
Changes

Modified mbtofhm.c from [4ebc9c7d4a] to [75af1cacc3].

1004
1005
1006
1007
1008
1009
1010

1011
1012
1013
1014
1015
1016
1017
    }
    if(i&0x08) {
      i=buf[5]&0x3F;
      if(buf[14] || buf[15]) i|=0xC0;
      else if(buf[12] || buf[13]) i|=0x80;
      else i|=0x40;
      if(i>=0xC0 && !buf[10] && !buf[11]) i&=0x3F;

      if(i&0xC0) {
        if((i&0x03)==0x02 && (buf[11] || buf[10]>20)) {
          j=buf[10]|(buf[11]<<8);
          fputc(j+236,fp); fputc((j+236)>>8,fp);
        } else {
          fwrite(buf+10,1,2,fp);
        }







>







1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
    }
    if(i&0x08) {
      i=buf[5]&0x3F;
      if(buf[14] || buf[15]) i|=0xC0;
      else if(buf[12] || buf[13]) i|=0x80;
      else i|=0x40;
      if(i>=0xC0 && !buf[10] && !buf[11]) i&=0x3F;
      fputc(i,fp);
      if(i&0xC0) {
        if((i&0x03)==0x02 && (buf[11] || buf[10]>20)) {
          j=buf[10]|(buf[11]<<8);
          fputc(j+236,fp); fputc((j+236)>>8,fp);
        } else {
          fwrite(buf+10,1,2,fp);
        }