[Scummvm-cvs-logs] CVS: scummvm actor.cpp,1.65,1.66 script_v1.cpp,1.109,1.110
James Brown
ender at users.sourceforge.net
Tue May 14 12:45:04 CEST 2002
- Previous message: [Scummvm-cvs-logs] CVS: scummvm actor.h,NONE,1.1 actor.cpp,1.64,1.65 boxes.cpp,1.27,1.28 object.cpp,1.67,1.68 script.cpp,1.57,1.58 script_v1.cpp,1.108,1.109 script_v2.cpp,1.61,1.62 scumm.h,1.160,1.161 scummvm.cpp,1.151,1.152 sound.cpp,1.87,1.88 string.cpp,1.40,1.41
- Next message: [Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.27,1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv3482
Modified Files:
actor.cpp script_v1.cpp
Log Message:
fix some warnings, odd code, and prevent Simon segfaulting when wrong game specified.
Index: actor.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/actor.cpp,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -d -r1.65 -r1.66
--- actor.cpp 14 May 2002 19:11:20 -0000 1.65
+++ actor.cpp 14 May 2002 19:44:40 -0000 1.66
@@ -1306,7 +1306,7 @@
curpal = _currentPalette + from * 3;
num = to - from + 1;
do {
- *table++ = remapPaletteColor(curpal[0] * rfact >> 8,
+ *table++ = remapPaletteColor((curpal[0] * rfact) >> 8,
curpal[1] * gfact >> 8,
curpal[2] * bfact >> 8, (uint) - 1);
curpal += 3;
Index: script_v1.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/script_v1.cpp,v
retrieving revision 1.109
retrieving revision 1.110
diff -u -d -r1.109 -r1.110
--- script_v1.cpp 14 May 2002 19:11:20 -0000 1.109
+++ script_v1.cpp 14 May 2002 19:44:41 -0000 1.110
@@ -1445,7 +1445,7 @@
void Scumm::o5_ifClassOfIs()
{
- int act, cls, b;
+ int act, cls, b = 0;
bool cond = true;
act = getVarOrDirectWord(0x80);
@@ -1454,6 +1454,8 @@
cls = getVarOrDirectWord(0x80);
if (cls)
b = getClass(act, cls);
+ else
+ error("FIXME! Ender forgot why he added this.");
if (cls & 0x80 && !b || !(cls & 0x80) && b)
cond = false;
@@ -1984,6 +1986,7 @@
_opcode = fetchScriptByte();
e = getVarOrDirectByte(0x40);
setScaleItem(e - 1, b, a, d, c);
+ break;
case 8: /* room scale? */
if (_features & GF_SMALL_HEADER) {
if (!(_features & GF_OLD256)) {
- Previous message: [Scummvm-cvs-logs] CVS: scummvm actor.h,NONE,1.1 actor.cpp,1.64,1.65 boxes.cpp,1.27,1.28 object.cpp,1.67,1.68 script.cpp,1.57,1.58 script_v1.cpp,1.108,1.109 script_v2.cpp,1.61,1.62 scumm.h,1.160,1.161 scummvm.cpp,1.151,1.152 sound.cpp,1.87,1.88 string.cpp,1.40,1.41
- Next message: [Scummvm-cvs-logs] CVS: scummvm/simon simon.cpp,1.27,1.28
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list