Free Hero Mesh

Check-in [417251f440]
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 edit.c so that it does not mistakenly use RLE if the object's Dir variable is different than the previous object.
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: 417251f440f73afae96e61c41d277687f5b090b7
User & Date: user on 2023-08-25 21:53:45
Other Links: manifest | tags
Context
2023-08-25
21:54
Move the differences of MESH:Hero into a separate document. check-in: 1693d8528c user: user tags: trunk
21:53
Correct a mistake in edit.c so that it does not mistakenly use RLE if the object's Dir variable is different than the previous object. check-in: 417251f440 user: user tags: trunk
2023-08-18
05:14
Add stuff to tutorial document. (Hopefully it is better now?) check-in: 3cf9cc50a4 user: user tags: trunk
Changes

Modified edit.c from [3ade7c9610] to [fab4b81851].

158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
    sqlite3_str_appendchar(s,1,r);
    if(r&0x20) sqlite3_str_appendchar(s,1,rx);
    if(r&0x10) sqlite3_str_appendchar(s,1,ry);
  }
  r=0;
  if(!o) return;
  if(o->misc1.t|o->misc1.u|o->misc2.t|o->misc2.u|o->misc3.t|o->misc3.u) b|=0x08;
  if(p && o->class==p->class && o->image==p->image && ValueEq(o->misc1,p->misc1) && ValueEq(o->misc2,p->misc2) && ValueEq(o->misc3,p->misc3)) {
    // Use RLE
    r=0x80|b&0xF0;
    rx=o->x;
    ry=o->y;
    return;
  }
  m[b&0x70?0:1]=o;







|







158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
    sqlite3_str_appendchar(s,1,r);
    if(r&0x20) sqlite3_str_appendchar(s,1,rx);
    if(r&0x10) sqlite3_str_appendchar(s,1,ry);
  }
  r=0;
  if(!o) return;
  if(o->misc1.t|o->misc1.u|o->misc2.t|o->misc2.u|o->misc3.t|o->misc3.u) b|=0x08;
  if(p && o->class==p->class && o->image==p->image && ValueEq(o->misc1,p->misc1) && ValueEq(o->misc2,p->misc2) && ValueEq(o->misc3,p->misc3) && o->dir==p->dir) {
    // Use RLE
    r=0x80|b&0xF0;
    rx=o->x;
    ry=o->y;
    return;
  }
  m[b&0x70?0:1]=o;