[Scummvm-cvs-logs] CVS: scummvm boxes.cpp,1.9,1.10
James Brown
ender at users.sourceforge.net
Thu Feb 14 10:21:04 CET 2002
Update of /cvsroot/scummvm/scummvm
In directory usw-pr-cvs1:/tmp/cvs-serv9821
Modified Files:
boxes.cpp
Log Message:
More zak goodness!
Index: boxes.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/boxes.cpp,v
retrieving revision 1.9
retrieving revision 1.10
diff -C2 -d -r1.9 -r1.10
*** boxes.cpp 14 Feb 2002 12:57:29 -0000 1.9
--- boxes.cpp 14 Feb 2002 18:20:22 -0000 1.10
***************
*** 46,52 ****
byte *ptr = getResourceAddress(rtMatrix, 2);
checkRange(ptr[0]-1, 0, box, "Illegal box %d");
! if(_features & GF_SMALL_HEADER)
! return (Box*)(ptr + box*SIZEOF_BOX + 1);
! else
return (Box*)(ptr + box*SIZEOF_BOX + 2);
}
--- 46,55 ----
byte *ptr = getResourceAddress(rtMatrix, 2);
checkRange(ptr[0]-1, 0, box, "Illegal box %d");
! if(_features & GF_SMALL_HEADER) {
! if (_gameId == GID_ZAK256)
! return (Box*)(ptr + box*(SIZEOF_BOX-2) + 1);
! else
! return (Box*)(ptr + box*SIZEOF_BOX + 1);
! } else
return (Box*)(ptr + box*SIZEOF_BOX + 2);
}
More information about the Scummvm-git-logs
mailing list