diff options
author | Andrei Prykhodko | 2018-06-30 15:54:37 +0300 |
---|---|---|
committer | Andrei Prykhodko | 2018-06-30 15:54:37 +0300 |
commit | 35a3389cead91fc600dabe518fcee985aa46fd30 (patch) | |
tree | be8e50bec5fa13c88234254a8d14efe5d28863c0 /engines/pink | |
parent | 516fbe05b3a2aad921222f9c503f16c6f9aab765 (diff) | |
download | scummvm-rg350-35a3389cead91fc600dabe518fcee985aa46fd30.tar.gz scummvm-rg350-35a3389cead91fc600dabe518fcee985aa46fd30.tar.bz2 scummvm-rg350-35a3389cead91fc600dabe518fcee985aa46fd30.zip |
PINK: fixed ActionPlayWithSfx
Diffstat (limited to 'engines/pink')
-rw-r--r-- | engines/pink/objects/actions/action_play_with_sfx.cpp | 1 | ||||
-rw-r--r-- | engines/pink/pda_mgr.cpp | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/engines/pink/objects/actions/action_play_with_sfx.cpp b/engines/pink/objects/actions/action_play_with_sfx.cpp index e50c2f850f..be3f0cae7c 100644 --- a/engines/pink/objects/actions/action_play_with_sfx.cpp +++ b/engines/pink/objects/actions/action_play_with_sfx.cpp @@ -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(); diff --git a/engines/pink/pda_mgr.cpp b/engines/pink/pda_mgr.cpp index fbe6f4a0f0..9b856da348 100644 --- a/engines/pink/pda_mgr.cpp +++ b/engines/pink/pda_mgr.cpp @@ -172,7 +172,6 @@ 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]); @@ -180,7 +179,6 @@ void PDAMgr::updateWheels(bool playSfx) { 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]); |