aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engines/pink/objects/actions/action_play_with_sfx.cpp1
-rw-r--r--engines/pink/pda_mgr.cpp2
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]);