aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_play_with_sfx.cpp
diff options
context:
space:
mode:
authorwhiterandrek2018-05-12 22:23:43 +0300
committerEugene Sandulenko2018-06-28 23:51:32 +0200
commit08d065229757c597d2a087d4901e115115f023e7 (patch)
tree42edc1ad9ba1443a658978679ac2f6906a6c2026 /engines/pink/objects/actions/action_play_with_sfx.cpp
parent9cfa4970a24aea17530ad567905e8e38d207c951 (diff)
downloadscummvm-rg350-08d065229757c597d2a087d4901e115115f023e7.tar.gz
scummvm-rg350-08d065229757c597d2a087d4901e115115f023e7.tar.bz2
scummvm-rg350-08d065229757c597d2a087d4901e115115f023e7.zip
PINK: implemented stopFrame
Diffstat (limited to 'engines/pink/objects/actions/action_play_with_sfx.cpp')
-rw-r--r--engines/pink/objects/actions/action_play_with_sfx.cpp4
1 files changed, 2 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 eaea104d89..a724dabe9a 100644
--- a/engines/pink/objects/actions/action_play_with_sfx.cpp
+++ b/engines/pink/objects/actions/action_play_with_sfx.cpp
@@ -42,9 +42,9 @@ void ActionPlayWithSfx::toConsole() {
}
void ActionPlayWithSfx::update() {
- if (_decoder->endOfVideo() && _isLoop) {
+ if ((_decoder->endOfVideo() || _decoder->getCurFrame() == _stopFrame) && _isLoop) {
_decoder->rewind();
- } else if (_decoder->endOfVideo()) {
+ } else if (_decoder->endOfVideo() || _decoder->getCurFrame() == _stopFrame) {
_decoder->stop();
_actor->endAction();
}