[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.140,1.141
Max Horn
fingolfin at users.sourceforge.net
Sat May 31 09:32:02 CEST 2003
Update of /cvsroot/scummvm/scummvm/scumm
In directory sc8-pr-cvs1:/tmp/cvs-serv5038
Modified Files:
script_v6.cpp
Log Message:
fix for part of bug #630570
Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.140
retrieving revision 1.141
diff -u -d -r1.140 -r1.141
--- script_v6.cpp 31 May 2003 14:27:47 -0000 1.140
+++ script_v6.cpp 31 May 2003 16:24:01 -0000 1.141
@@ -865,7 +865,7 @@
while (--num >= 0) {
cls = args[num];
b = getClass(obj, cls);
- if (cls & 0x80 && !b || !(cls & 0x80) && b)
+ if ((cls & 0x80 && !b) || (!(cls & 0x80) && b))
cond = 0;
}
push(cond);
@@ -1653,8 +1653,11 @@
a->initActor(0);
break;
case 84: /* actor-elevation */
- a->elevation = pop();
- a->needRedraw = true;
+ k = pop();
+ if (k != a->elevation) {
+ a->elevation = k;
+ a->needRedraw = true;
+ }
break;
case 85: /* actor-defaultanims */
a->initFrame = 1;
More information about the Scummvm-git-logs
mailing list