[Scummvm-cvs-logs] CVS: scummvm/scumm script_v6.cpp,1.141,1.142 script_v8.cpp,2.172,2.173

Max Horn fingolfin at users.sourceforge.net
Sat May 31 10:19:08 CEST 2003


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

Modified Files:
	script_v6.cpp script_v8.cpp 
Log Message:
apply V6 elevation change to V8, too

Index: script_v6.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v6.cpp,v
retrieving revision 1.141
retrieving revision 1.142
diff -u -d -r1.141 -r1.142
--- script_v6.cpp	31 May 2003 16:24:01 -0000	1.141
+++ script_v6.cpp	31 May 2003 17:18:40 -0000	1.142
@@ -1653,9 +1653,9 @@
 		a->initActor(0);
 		break;
 	case 84:											/* actor-elevation */
-		k = pop();
-		if (k != a->elevation) {
-			a->elevation = k;
+		i = pop();
+		if (i != a->elevation) {
+			a->elevation = i;
 			a->needRedraw = true;
 		}
 		break;

Index: script_v8.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/scumm/script_v8.cpp,v
retrieving revision 2.172
retrieving revision 2.173
diff -u -d -r2.172 -r2.173
--- script_v8.cpp	31 May 2003 14:27:47 -0000	2.172
+++ script_v8.cpp	31 May 2003 17:18:41 -0000	2.173
@@ -1067,8 +1067,11 @@
 		a->initActor(0);
 		break;
 	case 0x6E:		// SO_ACTOR_ELEVATION
-		a->elevation = pop();
-		a->needRedraw = true;
+		i = pop();
+		if (i != a->elevation) {
+			a->elevation = i;
+			a->needRedraw = true;
+		}
 		break;
 	case 0x6F:		// SO_ACTOR_PALETTE Set actor palette
 		j = pop();





More information about the Scummvm-git-logs mailing list