[Scummvm-cvs-logs] CVS: scummvm/scumm script_v5.cpp,1.1,1.2
Max Horn
fingolfin at users.sourceforge.net
Fri Dec 13 08:45:01 CET 2002
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv17309
Modified Files:
script_v5.cpp
Log Message:
fix for bug #647844, but this shadowPalette stuff needs investigation
Index: script_v5.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v5.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- script_v5.cpp 12 Dec 2002 16:29:20 -0000 1.1
+++ script_v5.cpp 13 Dec 2002 16:44:00 -0000 1.2
@@ -1696,8 +1696,13 @@
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");
}
More information about the Scummvm-git-logs
mailing list