diff options
author | Max Horn | 2003-07-08 17:22:53 +0000 |
---|---|---|
committer | Max Horn | 2003-07-08 17:22:53 +0000 |
commit | ebd5310473690de50016307c5ccb8ed426752ee1 (patch) | |
tree | 32dc5498c6b5d61a17aceadfc2a1b2a6c3769a84 /scumm | |
parent | d9a604a925542d34c500dd250f62def96a50c880 (diff) | |
download | scummvm-rg350-ebd5310473690de50016307c5ccb8ed426752ee1.tar.gz scummvm-rg350-ebd5310473690de50016307c5ccb8ed426752ee1.tar.bz2 scummvm-rg350-ebd5310473690de50016307c5ccb8ed426752ee1.zip |
width has to be multiplied by 8; not sure about xmove, the values still look completely wrong compared to V2
svn-id: r8862
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/costume.cpp | 15 |
1 files changed, 3 insertions, 12 deletions
diff --git a/scumm/costume.cpp b/scumm/costume.cpp index 445e89a82c..c619f47d12 100644 --- a/scumm/costume.cpp +++ b/scumm/costume.cpp @@ -560,35 +560,26 @@ byte CostumeRenderer::drawLimb(const CostumeData &cost, int limb) { // Determine the position the limb is at i = cost.curpos[limb] & 0x7FFF; -//printf("costume %d, limb %d:\n", _loaded._id, limb); - // Get the frame pointer for that limb frameptr = _loaded._baseptr + READ_LE_UINT16(_loaded._frameOffsets + limb * 2); -//printf("frameptr:\n"); -//hexdump(frameptr-0x10, 0x20); - // Determine the offset to the costume data for the limb at position i code = _loaded._animCmds[i] & 0x7F; // Code 0x7B indicates a limb for which there is nothing to draw if (code != 0x7B) { -//printf("code %d:\n", code); -//hexdump(frameptr + code * 2 - 0x10, 0x20); _srcptr = _loaded._baseptr + READ_LE_UINT16(frameptr + code * 2); -//printf("_srcptr:\n"); -//hexdump(_srcptr, 0x20); if (!(_vm->_features & GF_OLD256) || code < 0x79) { const CostumeInfo *costumeInfo; int xmoveCur, ymoveCur; if (_vm->_version == 1) { - _width = _srcptr[0]; + _width = _srcptr[0] * 8; _height = _srcptr[1]; - xmoveCur = _xmove + _srcptr[2]; + xmoveCur = _xmove + _srcptr[2] * 8; ymoveCur = _ymove + _srcptr[3]; - _xmove += _srcptr[4]; + _xmove += _srcptr[4] * 8; _ymove -= _srcptr[5]; _srcptr += 6; } else { |