aboutsummaryrefslogtreecommitdiff
path: root/engines/pink
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-30 15:54:37 +0300
committerAndrei Prykhodko2018-06-30 15:54:37 +0300
commit35a3389cead91fc600dabe518fcee985aa46fd30 (patch)
treebe8e50bec5fa13c88234254a8d14efe5d28863c0 /engines/pink
parent516fbe05b3a2aad921222f9c503f16c6f9aab765 (diff)
downloadscummvm-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.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]);