[Scummvm-cvs-logs] CVS: scummvm/queen cutaway.cpp,1.70,1.71
Gregory Montoir
cyx at users.sourceforge.net
Mon Nov 17 11:57:29 CET 2003
Update of /cvsroot/scummvm/scummvm/queen
In directory sc8-pr-cvs1:/tmp/cvs-serv20657
Modified Files:
cutaway.cpp
Log Message:
fix some demo-related bugs :
- lola disappearing under the shower
- wrong frame used when Joe uses the sheet rope (changed some conditions to match the ones in the original source)
the english demo versions (PCGames & normal) seem now to be completable without any graphical glitches ; only the sound/music and 'end message' are missing
Index: cutaway.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/queen/cutaway.cpp,v
retrieving revision 1.70
retrieving revision 1.71
diff -u -d -r1.70 -r1.71
--- cutaway.cpp 17 Nov 2003 13:31:00 -0000 1.70
+++ cutaway.cpp 17 Nov 2003 19:55:17 -0000 1.71
@@ -1023,7 +1023,7 @@
}
if (objAnim[i].object < 4)
- bob->frameNum = 29 + bob->frameNum + FRAMES_JOE_XTRA;
+ bob->frameNum = 29 + objAnim[i].object + FRAMES_JOE_XTRA;
if (objAnim[i].unpackFrame == 0) {
// Turn off the bob
@@ -1033,7 +1033,7 @@
if (object.animType == 2 || object.animType == 0) {
// Unpack animation, but do not unpack moving people
- if (!((objAnim[i].mx || objAnim[i].my) && InRange(objAnim[i].object, 0, 3))) {
+ if (!((objAnim[i].mx > 0 || objAnim[i].my > 0) && InRange(objAnim[i].object, 1, 3))) {
/*debug(0, "Animation - bankUnpack(%i, %i, %i);",
objAnim[i].unpackFrame,
objAnim[i].originalFrame,
@@ -1056,12 +1056,14 @@
}
// Only flip if we are not moving or it is not a person object
- if (!(objAnim[i].mx || objAnim[i].my) ||
- !(objAnim[i].object > 0 && objAnim[i].object < 4))
+ if (!(objAnim[i].object > 0 && objAnim[i].object < 4) ||
+ !(objAnim[i].mx || objAnim[i].my) )
bob->xflip = objAnim[i].flip;
// Add frame alteration
- bob->frameNum = objAnim[i].originalFrame;
+ if (!(objAnim[i].object > 0 && objAnim[i].object < 4)) {
+ bob->frameNum = objAnim[i].originalFrame;
+ }
int j;
for (j = 0; j < objAnim[i].speed; j++)
More information about the Scummvm-git-logs
mailing list