aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorJohannes Schickel2011-12-11 04:47:18 +0100
committerJohannes Schickel2011-12-11 05:04:04 +0100
commit42fd6975447b99f4a66ec411a62def2b3b49c5d6 (patch)
tree220d34c90b79f95aeb1e55404b04b248adacbfd7 /engines/cine
parentc48af08a0b4ba7d813260c4c94132057f4a39e93 (diff)
downloadscummvm-rg350-42fd6975447b99f4a66ec411a62def2b3b49c5d6.tar.gz
scummvm-rg350-42fd6975447b99f4a66ec411a62def2b3b49c5d6.tar.bz2
scummvm-rg350-42fd6975447b99f4a66ec411a62def2b3b49c5d6.zip
CINE: Make findNote behave a bit more like the original.
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/sound.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/cine/sound.cpp b/engines/cine/sound.cpp
index d882809956..c909474093 100644
--- a/engines/cine/sound.cpp
+++ b/engines/cine/sound.cpp
@@ -246,7 +246,9 @@ private:
void PCSoundDriver::findNote(int freq, int *note, int *oct) const {
*note = _noteTableCount - 1;
- for (int i = 0; i < _noteTableCount; ++i) {
+ // It might seem odd that we start with 1 here, but the original has the
+ // same behavior.
+ for (int i = 1; i < _noteTableCount; ++i) {
if (_noteTable[i] <= freq) {
*note = i;
break;