Add hack from Jamieson, to prevent palette darkening when it shouldn't in Amiga versions of Mi2/FOA.

svn-id: r10820
This commit is contained in:
Travis Howell
2003-10-16 05:49:09 +00:00
parent f057e794f7
commit 8d656e8efb
+7
View File
@@ -3091,6 +3091,13 @@ void ScummEngine::darkenPalette(int redScale, int greenScale, int blueScale, int
cur = _currentPalette + startColor * 3;
for (j = startColor; j <= endColor; j++) {
// FIXME: Hack to fix Amiga palette adjustments
if ((_features & GF_AMIGA && _version == 5) && (j >= 16 && j < 81)) {
cptr += 3;
cur += 3;
continue;
}
color = *cptr++;
color = color * redScale / 0xFF;
if (color > 255)