From bb0a9a1a5e84ce1e943ec3df6470cb6219efd924 Mon Sep 17 00:00:00 2001 From: Vincent Hamm Date: Thu, 21 Feb 2002 23:43:19 +0000 Subject: [PATCH] Fixed indy and zak costumes svn-id: r3618 --- costume.cpp | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/costume.cpp b/costume.cpp index 468e056104a..95c53f476aa 100644 --- a/costume.cpp +++ b/costume.cpp @@ -726,7 +726,8 @@ byte CostumeRenderer::drawOneSlot(Actor *a, int slot) { _srcptr = _loaded._ptr + READ_LE_UINT16(_frameptr + code*2); if (code != 0x7B) { - return mainRoutine(a, slot, code); + if( _vm->_features & GF_OLD256 && code <0x79) + return mainRoutine(a, slot, code); } #endif @@ -786,9 +787,6 @@ void Scumm::cost_decodeData(Actor *a, int frame, uint usemask) { int anim; LoadedCostume lc; - if(_gameId == GID_INDY3_256) /*FIXME*/ - return; - loadCostume(&lc, a->costume); anim = cost_frameToAnim(a, frame); @@ -813,9 +811,12 @@ void Scumm::cost_decodeData(Actor *a, int frame, uint usemask) { i = 0; do { if (mask&0x8000) { - if(_features & GF_OLD256) { + if(_features & GF_OLD256 ) { + j = 0; j = *(r); r++; + if(j==0xFF) + j=0xFFFF; } else { j = READ_LE_UINT16(r); r+=2;