akos codec 32 should never be used for old costumes.

small change to match original.

svn-id: r20373
This commit is contained in:
Travis Howell 2006-02-04 12:44:31 +00:00
parent 26349e6f65
commit 6277598a2d

View File

@ -430,9 +430,6 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) {
case 16:
result |= codec16(xmoveCur, ymoveCur);
break;
case 32:
result |= codec32(xmoveCur, ymoveCur);
break;
default:
error("akos_drawLimb: invalid codec %d", codec);
}
@ -450,7 +447,7 @@ byte AkosRenderer::drawLimb(const Actor *a, int limb) {
for (i = 0; i != extra; i++) {
code = p[4];
if (code & 0x80)
code = ((code & 0xF) << 8) | p[5];
code = ((code & 0xF) << 8) | (p[5] & 0xFFF);
off = akof + code;
_srcptr = akcd + READ_LE_UINT32(&off->akcd);