[Scummvm-cvs-logs] CVS: scummvm/scumm resource_v2.cpp,1.13,1.14

Pawel Kolodziejski aquadran at users.sourceforge.net
Sun Apr 20 14:10:13 CEST 2003


Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv27735

Modified Files:
	resource_v2.cpp 
Log Message:
fixed building object tables (now I understand)

Index: resource_v2.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/resource_v2.cpp,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- resource_v2.cpp	20 Apr 2003 20:58:00 -0000	1.13
+++ resource_v2.cpp	20 Apr 2003 21:09:43 -0000	1.14
@@ -60,7 +60,9 @@
 	int num = _fileHandle.readUint16LE();
 	assert(num == _numGlobalObjects);
 	for (int i = 0; i != num; i++) {
-		_objectStateTable[i] = _fileHandle.readByte();
+		byte tmp = _fileHandle.readByte();
+		_objectOwnerTable[i] = tmp & OF_OWNER_MASK;
+		_objectStateTable[i] = tmp >> OF_STATE_SHL;
 	}
 	readResTypeList(rtRoom, MKID('ROOM'), "room");
 	readResTypeList(rtCostume, MKID('COST'), "costume");





More information about the Scummvm-git-logs mailing list