From 84e6f542c48dba5797b5dbe3679ab0dd22f0c3b0 Mon Sep 17 00:00:00 2001 From: kramm Date: Sun, 4 Nov 2001 16:24:07 +0000 Subject: [PATCH] * fixed relocation of definebutton. * fixed logging messages --- src/reloc.c | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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++; -- 1.7.10.4