[Scummvm-git-logs] scummvm master -> e13806148bac0038c0879e4dcd4145d5558f5b99

dreammaster dreammaster at scummvm.org
Mon Feb 6 05:57:55 CET 2017


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
e13806148b TITANIC: Fix populated contents of CMusicWave array


Commit: e13806148bac0038c0879e4dcd4145d5558f5b99
    https://github.com/scummvm/scummvm/commit/e13806148bac0038c0879e4dcd4145d5558f5b99
Author: Paul Gilbert (dreammaster at scummvm.org)
Date: 2017-02-05T23:57:47-05:00

Commit Message:
TITANIC: Fix populated contents of CMusicWave array

Changed paths:
    engines/titanic/sound/music_wave.cpp


diff --git a/engines/titanic/sound/music_wave.cpp b/engines/titanic/sound/music_wave.cpp
index a1dd460..5f111a4 100644
--- a/engines/titanic/sound/music_wave.cpp
+++ b/engines/titanic/sound/music_wave.cpp
@@ -334,14 +334,14 @@ void CMusicWave::setupArray(int minVal, int maxVal) {
 
 	double val = 1.0594634;
 	for (int idx = 1; idx <= maxVal; ++idx) {
-		val *= 1.0594634;
 		_array[_arrayIndex + idx] = val;
+		val *= 1.0594634;
 	}
 
 	val = 0.94387404038686;
 	for (int idx = -1; idx >= minVal; --idx) {
-		val *= 0.94387404038686;
 		_array[_arrayIndex + idx] = val;
+		val *= 0.94387404038686;
 	}
 }
 





More information about the Scummvm-git-logs mailing list