[Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.95,1.96

Max Horn fingolfin at users.sourceforge.net
Fri May 16 18:00:06 CEST 2003


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

Modified Files:
	object.cpp 
Log Message:
fixed object walk_x/walk_y for V2 games

Index: object.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/object.cpp,v
retrieving revision 1.95
retrieving revision 1.96
diff -u -d -r1.95 -r1.96
--- object.cpp	16 May 2003 21:31:15 -0000	1.95
+++ object.cpp	17 May 2003 00:59:47 -0000	1.96
@@ -654,8 +654,8 @@
 		od->parent = *(ptr + 12);
 
 		if (_features & GF_AFTER_V2) {
-			od->walk_x = *(ptr + 13);
-			od->walk_y = *(ptr + 14);
+			od->walk_x = *(ptr + 13) * 8;
+			od->walk_y = *(ptr + 14) * 8;
 			od->actordir = (*(ptr + 15)) & 7;
 			od->height = *(ptr + 15) & 0xf8;
 		} else {





More information about the Scummvm-git-logs mailing list