[Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.67,1.68
Max Horn
fingolfin at users.sourceforge.net
Fri Mar 7 16:25:02 CET 2003
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon items.cpp,1.54,1.55 simon.cpp,1.165,1.166 simon.h,1.55,1.56
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.68,1.69 scummvm.cpp,2.59,2.60
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv3314
Modified Files:
object.cpp
Log Message:
some more dummy code for valgrind debugging
Index: object.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/object.cpp,v
retrieving revision 1.67
retrieving revision 1.68
diff -u -d -r1.67 -r1.68
--- object.cpp 6 Mar 2003 21:46:06 -0000 1.67
+++ object.cpp 8 Mar 2003 00:24:23 -0000 1.68
@@ -1077,14 +1077,24 @@
}
}
+int another_dummy_valgrind_var = 0;
+
int Scumm::getObjNewDir(int obj) {
+ int dir;
if (obj < NUM_ACTORS) {
- return derefActorSafe(obj, "getObjNewDir")->facing;
+ dir = derefActorSafe(obj, "getObjNewDir")->facing;
+ if (dir > 0)
+ another_dummy_valgrind_var++;
} else {
- int x, y, dir;
+ int x, y;
getObjectXYPos(obj, x, y, dir);
- return oldDirToNewDir(dir);
+ if (dir > 0)
+ another_dummy_valgrind_var *= 2;
+ dir = oldDirToNewDir(dir);
+ if (dir > 0)
+ another_dummy_valgrind_var--;
}
+ return dir;
}
int Scumm::findInventory(int owner, int idx) {
- Previous message: [Scummvm-cvs-logs] CVS: scummvm/simon items.cpp,1.54,1.55 simon.cpp,1.165,1.166 simon.h,1.55,1.56
- Next message: [Scummvm-cvs-logs] CVS: scummvm/scumm object.cpp,1.68,1.69 scummvm.cpp,2.59,2.60
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the Scummvm-git-logs
mailing list