Ticket #9113: costume.patch

File costume.patch, 868 bytes (added by SF/tobigun, 14 years ago)

costume patch

  • costume.cpp

     
    12011201                palette[3] = 11;
    12021202        }
    12031203
    1204         int width = *data++;
    1205         int height = *data++;
    1206         int offsetX = *data++;
    1207         int offsetY = *data++;
    1208         // these two fields seems to be most times zero
    1209         // byte6 was one time 255 in one costume I tried
    1210 //      int byte5 = *data++;            // 0x1F80                       // This value is never used
    1211 //      int byte6 = *data++;            // 0x1F86                       // This value is subtracted from ?actor drawy? at 0x2383
    1212 //      debug(3, "byte5: %d", byte5);
    1213 //      debug(3, "byte6: %d", byte6);
    1214         data += 2;
     1204        int width = data[0];
     1205        int height = data[1];
     1206        int offsetX = _xmove + data[2];
     1207        int offsetY = _ymove + data[3];
     1208        _xmove += (int8)data[4];
     1209        _ymove += (int8)data[5];
     1210        data += 6;
    12151211
    12161212        if (!width || !height)
    12171213                return 0;