[Scummvm-cvs-logs] CVS: scummvm/sword1 sound.cpp,1.25,1.26

Nicolas Bacca arisme at users.sourceforge.net
Sat Jan 17 03:17:02 CET 2004


Update of /cvsroot/scummvm/scummvm/sword1
In directory sc8-pr-cvs1:/tmp/cvs-serv18413

Modified Files:
	sound.cpp 
Log Message:
And again ... guess who fails compiling this ?

Index: sound.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sword1/sound.cpp,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- sound.cpp	11 Jan 2004 15:47:41 -0000	1.25
+++ sound.cpp	17 Jan 2004 11:16:38 -0000	1.26
@@ -219,7 +219,8 @@
 
 void Sound::calcWaveVolume(int16 *data, uint32 length) {
 	int16 *blkPos = data + 918;
-	for (uint32 cnt = 0; cnt < WAVE_VOL_TAB_LENGTH; cnt++)
+	uint32 cnt;
+	for (cnt = 0; cnt < WAVE_VOL_TAB_LENGTH; cnt++)
 		_waveVolume[cnt] = false;
 	_waveVolPos = 0;
 	for (uint32 blkCnt = 1; blkCnt < length / 918; blkCnt++) {
@@ -228,11 +229,11 @@
 			return;
 		}
 		int32 average = 0;		
-		for (uint32 cnt = 0; cnt < 918; cnt++)
+		for (cnt = 0; cnt < 918; cnt++)
 			average += blkPos[cnt];
 		average /= 918;
 		uint32 diff = 0;
-		for (uint32 cnt = 0; cnt < 918; cnt++) {
+		for (cnt = 0; cnt < 918; cnt++) {
 			int16 smpDiff = *blkPos - average;
 			diff += (uint32)ABS(smpDiff);
 			blkPos++;





More information about the Scummvm-git-logs mailing list