diff options
author | uruk | 2013-09-20 01:50:18 +0200 |
---|---|---|
committer | uruk | 2013-09-20 01:50:18 +0200 |
commit | 95b2e2724361b2bdfa2a8291c36a825893255e48 (patch) | |
tree | 68caf8d1c1d92ca57eb4327197e0f5676a3e088c /engines/avalanche/scrolls.cpp | |
parent | 4b84999a30670350faa7e950113dba309475f168 (diff) | |
download | scummvm-rg350-95b2e2724361b2bdfa2a8291c36a825893255e48.tar.gz scummvm-rg350-95b2e2724361b2bdfa2a8291c36a825893255e48.tar.bz2 scummvm-rg350-95b2e2724361b2bdfa2a8291c36a825893255e48.zip |
AVALANCHE: A little revision of the harp minigame.
Diffstat (limited to 'engines/avalanche/scrolls.cpp')
-rw-r--r-- | engines/avalanche/scrolls.cpp | 35 |
1 files changed, 15 insertions, 20 deletions
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp index 6a2cd8d2c0..2b8e11487d 100644 --- a/engines/avalanche/scrolls.cpp +++ b/engines/avalanche/scrolls.cpp @@ -233,21 +233,17 @@ void Scrolls::scrollModeMusic() { // When we stop playing? if ((event.type == Common::EVENT_LBUTTONDOWN) || ((event.type == Common::EVENT_KEYDOWN) && ((event.kbd.keycode == Common::KEYCODE_RETURN) || (event.kbd.keycode == Common::KEYCODE_ESCAPE)))) { - _vm->_graphics->_surface.copyFrom(temp); - temp.free(); - _vm->_gyro->_seeScroll = false; - CursorMan.showMouse(true); - return; + break; } // When we DO play: - if ((event.type == Common::EVENT_KEYDOWN) && ((event.kbd.keycode == Common::KEYCODE_q) - || (event.kbd.keycode == Common::KEYCODE_w) || (event.kbd.keycode == Common::KEYCODE_e) - || (event.kbd.keycode == Common::KEYCODE_r) || (event.kbd.keycode == Common::KEYCODE_t) - || (event.kbd.keycode == Common::KEYCODE_y) || (event.kbd.keycode == Common::KEYCODE_u) - || (event.kbd.keycode == Common::KEYCODE_i) || (event.kbd.keycode == Common::KEYCODE_o) - || (event.kbd.keycode == Common::KEYCODE_p) || (event.kbd.keycode == Common::KEYCODE_LEFTBRACKET) - || (event.kbd.keycode == Common::KEYCODE_RIGHTBRACKET))) { + if ((event.type == Common::EVENT_KEYDOWN) + && ((event.kbd.keycode == Common::KEYCODE_q) || (event.kbd.keycode == Common::KEYCODE_w) + || (event.kbd.keycode == Common::KEYCODE_e) || (event.kbd.keycode == Common::KEYCODE_r) + || (event.kbd.keycode == Common::KEYCODE_t) || (event.kbd.keycode == Common::KEYCODE_y) + || (event.kbd.keycode == Common::KEYCODE_u) || (event.kbd.keycode == Common::KEYCODE_i) + || (event.kbd.keycode == Common::KEYCODE_o) || (event.kbd.keycode == Common::KEYCODE_p) + || (event.kbd.keycode == Common::KEYCODE_LEFTBRACKET) || (event.kbd.keycode == Common::KEYCODE_RIGHTBRACKET))) { byte value; switch (event.kbd.keycode) { case Common::KEYCODE_q: @@ -292,7 +288,7 @@ void Scrolls::scrollModeMusic() { thisOne = value; _vm->_sound->playNote(_vm->_gyro->kNotes[thisOne], 100); - _vm->_system->delayMillis(500); + _vm->_system->delayMillis(200); if (!_vm->_gyro->_bellsAreRinging) { // These handle playing the right tune. if (thisOne < lastOne) @@ -306,16 +302,15 @@ void Scrolls::scrollModeMusic() { if (theyMatch(played)) { setReadyLight(0); _vm->_timer->addTimer(8, Timer::kProcJacquesWakesUp, Timer::kReasonJacquesWakingUp); - - - _vm->_graphics->_surface.copyFrom(temp); - temp.free(); - _vm->_gyro->_seeScroll = false; - CursorMan.showMouse(true); - return; + break; } } } + + _vm->_graphics->_surface.copyFrom(temp); + temp.free(); + _vm->_gyro->_seeScroll = false; + CursorMan.showMouse(true); } void Scrolls::resetScrollDriver() { |