[Scummvm-cvs-logs] CVS: scummvm/sword1 animation.cpp,1.10,1.11

Torbj?rn Andersson eriktorbjorn at users.sourceforge.net
Sun Feb 15 06:31:01 CET 2004


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7532/sword1

Modified Files:
	animation.cpp 
Log Message:
Proper handling of BS2 cutscene lead-outs, plus some other minor fixes.


Index: animation.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/animation.cpp,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- animation.cpp	13 Feb 2004 00:54:58 -0000	1.10
+++ animation.cpp	15 Feb 2004 14:22:54 -0000	1.11
@@ -74,8 +74,14 @@
 
 	p = 0;
 	while (!feof(f)) {
-		if (fscanf(f, "%i %i", &palettes[p].end, &palettes[p].cnt) != 2)
+		int end, cnt;
+
+		if (fscanf(f, "%i %i", &end, &cnt) != 2)
 			break;
+
+		palettes[p].end = (uint) end;
+		palettes[p].cnt = (uint) cnt;
+
 		for (i = 0; i < palettes[p].cnt; i++) {
 			int r, g, b;
 			fscanf(f, "%i", &r);





More information about the Scummvm-git-logs mailing list