[Scummvm-cvs-logs] SF.net SVN: scummvm: [28200] scummvm/trunk/engines/touche/opcodes.cpp
cyx at users.sourceforge.net
cyx at users.sourceforge.net
Wed Jul 25 22:03:32 CEST 2007
Revision: 28200
http://scummvm.svn.sourceforge.net/scummvm/?rev=28200&view=rev
Author: cyx
Date: 2007-07-25 13:03:31 -0700 (Wed, 25 Jul 2007)
Log Message:
-----------
workaround for bug #1751149 (original game issue).
Modified Paths:
--------------
scummvm/trunk/engines/touche/opcodes.cpp
Modified: scummvm/trunk/engines/touche/opcodes.cpp
===================================================================
--- scummvm/trunk/engines/touche/opcodes.cpp 2007-07-25 19:56:43 UTC (rev 28199)
+++ scummvm/trunk/engines/touche/opcodes.cpp 2007-07-25 20:03:31 UTC (rev 28200)
@@ -828,10 +828,16 @@
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);
}
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
More information about the Scummvm-git-logs
mailing list