X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=src%2Freloc.c;h=56831aae81c6b76bd2bdddfef413ab0efd0ad954;hb=84e6f542c48dba5797b5dbe3679ab0dd22f0c3b0;hp=1582521c4cb08ba77da0647a5ac83b7d54e409b4;hpb=d3e4b6b167bc63e9767a8343b16245adedf7823c;p=swftools.git diff --git a/src/reloc.c b/src/reloc.c index 1582521..56831aa 100644 --- a/src/reloc.c +++ b/src/reloc.c @@ -104,7 +104,8 @@ void map_ids_mem(u8*mem, int length) readu16(); //char readu16(); //layer readMATRIX(); - readCXFORM(); + if(num>1) + readCXFORM(); } // ... break; @@ -189,7 +190,7 @@ void map_ids_mem(u8*mem, int length) // printf("%d shape bounds: %d %d %d %d\n",newtag->id,r.x1,r.y1,r.x2,r.y2); resetbits(); count = readu8(); - if(count == 0xff && num>1) + if(count == 0xff && num>1) // defineshape2,3 only count = readu16(); // printf("%d fillstyles\n", count); for(t=0;t relocator: processing tag %02x", tag->id); map_ids(&file.tags[pos]); if(is_defining_tag(tag->id)) @@ -277,11 +280,11 @@ void swf_relocate (u8*data, int length, int*_bitmap) bitmap[newid] = 1; slaveids[id] = newid; - logf(" sprite id %d mapped to %d",id, newid); + logf(" relocator: id %d mapped to %d",id, newid); setidintag(tag, newid); - logf(" [sprite defs] write tag %02x (%d bytes in body)", + logf(" [reloc] write tag %02x (%d bytes in body)", tag->id, tag->length); } pos++;