Skip to content

Commit

Permalink
PINK: fixed ActionPlayWithSfx
Browse files Browse the repository at this point in the history
  • Loading branch information
voltya committed Jun 30, 2018
1 parent 516fbe0 commit 35a3389
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions engines/pink/objects/actions/action_play_with_sfx.cpp
Expand Up @@ -57,6 +57,7 @@ void ActionPlayWithSfx::update() {
} else
ActionPlay::update();

currFrame++;
for (uint i = 0; i < _sfxArray.size(); ++i) {
if (_sfxArray[i]->getFrame() == currFrame)
_sfxArray[i]->play();
Expand Down
2 changes: 0 additions & 2 deletions engines/pink/pda_mgr.cpp
Expand Up @@ -172,15 +172,13 @@ void PDAMgr::updateWheels(bool playSfx) {
Actor *wheel = _page->findActor(kCountryWheel);
if (playSfx && wheel->getAction()->getName() != g_countries[_countryIndex]) {
wheel->setAction(Common::String(g_countries[_countryIndex]) + kSfx);
dynamic_cast<ActionCEL*>(wheel->getAction())->update();
dynamic_cast<ActionCEL*>(wheel->getAction())->update(); // hack
}
wheel->setAction(g_countries[_countryIndex]);

wheel = _page->findActor(kDomainWheel);
if (playSfx && wheel->getAction()->getName() != g_domains[_domainIndex]) {
wheel->setAction(Common::String(g_domains[_domainIndex]) + kSfx);
dynamic_cast<ActionCEL*>(wheel->getAction())->update();
dynamic_cast<ActionCEL*>(wheel->getAction())->update(); // hack
}
wheel->setAction(g_domains[_domainIndex]);
Expand Down

0 comments on commit 35a3389

Please sign in to comment.