diff options
author | Strangerke | 2014-11-23 14:56:18 +0100 |
---|---|---|
committer | Paul Gilbert | 2014-12-12 22:38:39 -0500 |
commit | c1b3db90c49de5c2925cf65dfa49889dd2941164 (patch) | |
tree | e7cf9bf262c7327a6fd56a8ffc2a96df08d7871f | |
parent | 30f602b6cb265000d4ac95e645598d324e3d5d49 (diff) | |
download | scummvm-rg350-c1b3db90c49de5c2925cf65dfa49889dd2941164.tar.gz scummvm-rg350-c1b3db90c49de5c2925cf65dfa49889dd2941164.tar.bz2 scummvm-rg350-c1b3db90c49de5c2925cf65dfa49889dd2941164.zip |
ACCESS: Implement riverSound
-rw-r--r-- | engines/access/amazon/amazon_scripts.cpp | 18 | ||||
-rw-r--r-- | engines/access/amazon/amazon_scripts.h | 2 |
2 files changed, 16 insertions, 4 deletions
diff --git a/engines/access/amazon/amazon_scripts.cpp b/engines/access/amazon/amazon_scripts.cpp index 4d354017c6..61387687b6 100644 --- a/engines/access/amazon/amazon_scripts.cpp +++ b/engines/access/amazon/amazon_scripts.cpp @@ -1733,11 +1733,23 @@ void AmazonScripts::initRiver() { bool AmazonScripts::JUMPTEST() { warning("TODO: JUMPTEST();"); + return true; } -void AmazonScripts::RIVERSOUND() { - warning("TODO: RIVERSOUND();"); +void AmazonScripts::riverSound() { + if (_game->_timers[11]._flag == 0) { + ++_game->_timers[11]._flag; + _vm->_sound->playSound(2); + } + + if (_game->_timers[12]._flag == 0) { + ++_game->_timers[12]._flag; + _vm->_sound->playSound(3); + } + + if ((_xCam >= 1300) && (_xCam <= 1320)) + _vm->_sound->playSound(1); } void AmazonScripts::MOVECANOE() { @@ -1786,7 +1798,7 @@ void AmazonScripts::RIVER() { _vm->_images.clear(); _vm->_animation->animate(0); - RIVERSOUND(); + riverSound(); pan(); MOVECANOE(); diff --git a/engines/access/amazon/amazon_scripts.h b/engines/access/amazon/amazon_scripts.h index 08ad23d0f6..7162bab057 100644 --- a/engines/access/amazon/amazon_scripts.h +++ b/engines/access/amazon/amazon_scripts.h @@ -97,7 +97,7 @@ protected: void loadBackground(int param1, int param2); void initRiver(); bool JUMPTEST(); - void RIVERSOUND(); + void riverSound(); void MOVECANOE(); void UPDATEOBSTACLES(); void SETPHYSX(); |