Fix painting and fridge magnet palette glitches in thinker1

svn-id: r21522
This commit is contained in:
Travis Howell 2006-04-01 06:38:47 +00:00
parent 8a5df05aa0
commit 7a81cc76e1
2 changed files with 5 additions and 8 deletions

View File

@ -689,12 +689,11 @@ void ScummEngine_v90he::o90_wizImageOps() {
_wizParams.processMode = 6;
if (_wizParams.remapNum == 0) {
memset(_wizParams.remapIndex, 0, sizeof(_wizParams.remapIndex));
} else {
assert(_wizParams.remapNum < ARRAYSIZE(_wizParams.remapIndex));
_wizParams.remapIndex[_wizParams.remapNum] = a;
_wizParams.remapColor[a] = b;
++_wizParams.remapNum;
}
assert(_wizParams.remapNum < ARRAYSIZE(_wizParams.remapIndex));
_wizParams.remapIndex[_wizParams.remapNum] = a;
_wizParams.remapColor[a] = b;
_wizParams.remapNum++;
break;
case 21:
_wizParams.processFlags |= kWPFClipBox;

View File

@ -1957,9 +1957,7 @@ void Wiz::processWizImage(const WizParameters *params) {
}
break;
case 6:
if (params->processFlags & kWPFRemapPalette) {
remapWizImagePal(params);
}
remapWizImagePal(params);
break;
// HE 99+
case 7: