From 35a3389cead91fc600dabe518fcee985aa46fd30 Mon Sep 17 00:00:00 2001 From: Andrei Prykhodko Date: Sat, 30 Jun 2018 15:54:37 +0300 Subject: PINK: fixed ActionPlayWithSfx --- engines/pink/objects/actions/action_play_with_sfx.cpp | 1 + engines/pink/pda_mgr.cpp | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) (limited to 'engines') 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(wheel->getAction())->update(); dynamic_cast(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(wheel->getAction())->update(); dynamic_cast(wheel->getAction())->update(); // hack } wheel->setAction(g_domains[_domainIndex]); -- cgit v1.2.3