aboutsummaryrefslogtreecommitdiff
path: root/scumm/akos.cpp
diff options
context:
space:
mode:
authorTravis Howell2006-02-04 12:44:31 +0000
committerTravis Howell2006-02-04 12:44:31 +0000
commit6277598a2d56bc6d1da713039704a8cd3cb41a78 (patch)
tree131b7cb78bf77078d6162b5f6d50f858a57b80ca /scumm/akos.cpp
parent26349e6f65fc629db3334c80f230c976fae4ef55 (diff)
downloadscummvm-rg350-6277598a2d56bc6d1da713039704a8cd3cb41a78.tar.gz
scummvm-rg350-6277598a2d56bc6d1da713039704a8cd3cb41a78.tar.bz2
scummvm-rg350-6277598a2d56bc6d1da713039704a8cd3cb41a78.zip
akos codec 32 should never be used for old costumes.
small change to match original. svn-id: r20373
Diffstat (limited to 'scumm/akos.cpp')
-rw-r--r--scumm/akos.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/scumm/akos.cpp b/scumm/akos.cpp
index 65402901e5..3b2b654a70 100644
--- a/scumm/akos.cpp
+++ b/scumm/akos.cpp
@@ -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);