[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.411,1.412
Travis Howell
kirben at users.sourceforge.net
Wed Sep 29 01:50:35 CEST 2004
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv9861/scumm
Modified Files:
script_v6.cpp
Log Message:
Should only copy data, not tag/size.
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.411
retrieving revision 1.412
diff -u -d -r1.411 -r1.412
--- script_v6.cpp 29 Sep 2004 00:28:35 -0000 1.411
+++ script_v6.cpp 29 Sep 2004 08:40:14 -0000 1.412
@@ -3071,10 +3071,6 @@
}
void ScummEngine_v6::o6_setBoxSet() {
- //FIXME Causes glitches and game to crash
- // Only used in fbear when leaving the basement
- return;
-
int arg = pop() - 1;
const byte *room = getResourceAddress(rtRoom, _roomResource);
@@ -3089,11 +3085,11 @@
if (!boxd)
error("ScummEngine_v6::o6_setBoxSet: Can't find dboxes for set %d", arg);
- dboxSize = READ_BE_UINT32(boxd + 4);
+ dboxSize = READ_BE_UINT32(boxd + 4) - 8;
byte *matrix = createResource(rtMatrix, 2, dboxSize);
assert(matrix);
- memcpy(matrix, boxd, dboxSize);
+ memcpy(matrix, boxd + 8, dboxSize);
ResourceIterator boxms(room, false);
for (i = 0; i < arg; i++)
@@ -3102,11 +3098,11 @@
if (!boxm)
error("ScummEngine_v6::o6_setBoxSet: Can't find mboxes for set %d", arg);
- mboxSize = READ_BE_UINT32(boxm + 4);
+ mboxSize = READ_BE_UINT32(boxm + 4) - 8;
matrix = createResource(rtMatrix, 1, mboxSize);
assert(matrix);
- memcpy(matrix, boxm, mboxSize);
+ memcpy(matrix, boxm + 8, mboxSize);
if (_version == 7)
putActors();
More information about the Scummvm-git-logs
mailing list