aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoruruk2013-09-20 00:56:41 +0200
committeruruk2013-09-20 00:56:41 +0200
commit207335d0f22ef821bd9c314ce13346ec6ff8b7c5 (patch)
treede3c5425b1b429213f2c22e2eadc4b3ece07cdff
parent5ccff749a5d3bdbc3c9fac3023e5a336f4f8f2c1 (diff)
downloadscummvm-rg350-207335d0f22ef821bd9c314ce13346ec6ff8b7c5.tar.gz
scummvm-rg350-207335d0f22ef821bd9c314ce13346ec6ff8b7c5.tar.bz2
scummvm-rg350-207335d0f22ef821bd9c314ce13346ec6ff8b7c5.zip
AVALANCHE: Repair minigame: Harp.
-rw-r--r--engines/avalanche/gyro.h3
-rw-r--r--engines/avalanche/scrolls.cpp4
2 files changed, 4 insertions, 3 deletions
diff --git a/engines/avalanche/gyro.h b/engines/avalanche/gyro.h
index 51b6c155f1..155feee8de 100644
--- a/engines/avalanche/gyro.h
+++ b/engines/avalanche/gyro.h
@@ -216,9 +216,10 @@ public:
static const QuasipedType kQuasipeds[16];
enum Pitch {
+ kPitchInvalid,
kPitchLower,
kPitchSame,
- kPitchHigher
+ kPitchHigher,
};
static const uint16 kNotes[12];
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 9e56170226..8936bfad8b 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -215,8 +215,8 @@ void Scrolls::scrollModeMusic() {
TuneType played;
for (int i = 0; i < sizeof(played); i++)
- played[i] = 0;
- byte lastOne = 0, thisOne = 0;
+ played[i] = Gyro::kPitchInvalid;
+ int8 lastOne = -1, thisOne = -1; // Invalid values.
_vm->_gyro->_seeScroll = true;