Skip to content

Commit

Permalink
ACCESS: Implement riverSound
Browse files Browse the repository at this point in the history
  • Loading branch information
Strangerke authored and dreammaster committed Dec 13, 2014
1 parent 30f602b commit c1b3db9
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
18 changes: 15 additions & 3 deletions engines/access/amazon/amazon_scripts.cpp
Expand Up @@ -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() {
Expand Down Expand Up @@ -1786,7 +1798,7 @@ void AmazonScripts::RIVER() {
_vm->_images.clear();
_vm->_animation->animate(0);

RIVERSOUND();
riverSound();
pan();
MOVECANOE();

Expand Down
2 changes: 1 addition & 1 deletion engines/access/amazon/amazon_scripts.h
Expand Up @@ -97,7 +97,7 @@ class AmazonScripts: public Scripts {
void loadBackground(int param1, int param2);
void initRiver();
bool JUMPTEST();
void RIVERSOUND();
void riverSound();
void MOVECANOE();
void UPDATEOBSTACLES();
void SETPHYSX();
Expand Down

0 comments on commit c1b3db9

Please sign in to comment.