diff options
author | Max Horn | 2002-12-13 16:44:00 +0000 |
---|---|---|
committer | Max Horn | 2002-12-13 16:44:00 +0000 |
commit | fc124552b8d55f975e60911100bd0d56dfdadd15 (patch) | |
tree | c8a9af426f4d69349fbcac115203d509d9699ff7 | |
parent | 4bf96d1c8bd2fbcd371b321a11484677478aee15 (diff) | |
download | scummvm-rg350-fc124552b8d55f975e60911100bd0d56dfdadd15.tar.gz scummvm-rg350-fc124552b8d55f975e60911100bd0d56dfdadd15.tar.bz2 scummvm-rg350-fc124552b8d55f975e60911100bd0d56dfdadd15.zip |
fix for bug #647844, but this shadowPalette stuff needs investigation
svn-id: r5932
-rw-r--r-- | scumm/script_v5.cpp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/scumm/script_v5.cpp b/scumm/script_v5.cpp index 72f27fbbef..d1aa599d54 100644 --- a/scumm/script_v5.cpp +++ b/scumm/script_v5.cpp @@ -1696,8 +1696,13 @@ void Scumm::o5_roomOps() b = getVarOrDirectWord(0x40); } checkRange(256, 0, a, "o5_roomOps: 2: Illegal room color slot (%d)"); - printf("copyPalColor(%d, %d)\n", a, b); - copyPalColor(a, b); + // FIXME - fingolfin thinks our whole _shadowPalette usage is weird. + // It seems very suspicious that subopcode 2 is identical to subopcode 4 + // for GF_SMALL_HEADER games. Needs investigation. +// printf("copyPalColor(%d, %d)\n", a, b); +// copyPalColor(a, b); + _shadowPalette[b] = a; + setDirtyColors(b, b); } else { error("room-color is no longer a valid command"); } |