From 12bec1c4948760aabaa1c8f83f731f9bfc88903d Mon Sep 17 00:00:00 2001 From: Gregory Montoir Date: Wed, 25 Jul 2007 20:03:31 +0000 Subject: workaround for bug #1751149 (original game issue). svn-id: r28200 --- engines/touche/opcodes.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'engines/touche/opcodes.cpp') diff --git a/engines/touche/opcodes.cpp b/engines/touche/opcodes.cpp index f0ef748fbd..2680ab0fae 100644 --- a/engines/touche/opcodes.cpp +++ b/engines/touche/opcodes.cpp @@ -828,10 +828,16 @@ void ToucheEngine::op_setHitBoxText() { void ToucheEngine::op_fadePalette() { debugC(9, kDebugOpcodes, "ToucheEngine::op_fadePalette()"); int16 fadeOut = _script.readNextWord(); + int colorsCount = 240; + // Workaround for bug #1751149. Script triggers a palette fading, but some + // of the room graphics use palette colors >= 240. + if (_currentEpisodeNum == 104 && _currentRoomNum == 68) { + colorsCount = 256; + } if (fadeOut) { - fadePalette(0, 240, 255, -2, 128); + fadePalette(0, colorsCount, 255, -2, 128); } else { - fadePalette(0, 240, 0, 2, 128); + fadePalette(0, colorsCount, 0, 2, 128); } } -- cgit v1.2.3