[Scummvm-cvs-logs] CVS: scummvm/kyra sprites.cpp,1.7,1.8

Torbjörn Andersson eriktorbjorn at users.sourceforge.net
Thu Nov 10 07:39:01 CET 2005


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

Modified Files:
	sprites.cpp 
Log Message:
Fixed compilation.


Index: sprites.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/kyra/sprites.cpp,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- sprites.cpp	10 Nov 2005 14:08:50 -0000	1.7
+++ sprites.cpp	10 Nov 2005 15:37:58 -0000	1.8
@@ -142,6 +142,7 @@
 		while (READ_LE_UINT16(data) != 0xFF87 && !endLoop) {
 			uint16 rndNr;
 			uint16 anim;
+			uint16 sound;
 			assert((data - _anims[i].script) < _anims[i].length);
 			switch (READ_LE_UINT16(data)) {
 			case 0xFF88:
@@ -358,7 +359,7 @@
 				data += 2;
 				debug(5, "func: Play (at random) a certain sound at a certain percentage of time");
 				debug(5, "Sound index %i", READ_LE_UINT16(data));
-				int sound = READ_LE_UINT16(data);
+				sound = READ_LE_UINT16(data);
 				data += 2;
 				debug(5, "Percentage %i", READ_LE_UINT16(data));
 				rndNr = _rnd.getRandomNumber(100);





More information about the Scummvm-git-logs mailing list