aboutsummaryrefslogtreecommitdiff
path: root/engines/pink/objects/actions/action_cel.cpp
diff options
context:
space:
mode:
authorAndrei Prykhodko2018-06-30 10:33:50 +0300
committerAndrei Prykhodko2018-06-30 10:33:50 +0300
commitf75bb43f91f70b99227ef86e930962b6cfeecfc1 (patch)
tree7ac5bb0897c04014f2d661c58513958fa0d4dbf1 /engines/pink/objects/actions/action_cel.cpp
parent4d7bed967586e5d537c17b80a6aaf945a540d257 (diff)
downloadscummvm-rg350-f75bb43f91f70b99227ef86e930962b6cfeecfc1.tar.gz
scummvm-rg350-f75bb43f91f70b99227ef86e930962b6cfeecfc1.tar.bz2
scummvm-rg350-f75bb43f91f70b99227ef86e930962b6cfeecfc1.zip
PINK: fixed loading of GLOBAL pda page
Diffstat (limited to 'engines/pink/objects/actions/action_cel.cpp')
-rw-r--r--engines/pink/objects/actions/action_cel.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/engines/pink/objects/actions/action_cel.cpp b/engines/pink/objects/actions/action_cel.cpp
index f31db4cbc9..600eb88e27 100644
--- a/engines/pink/objects/actions/action_cel.cpp
+++ b/engines/pink/objects/actions/action_cel.cpp
@@ -64,9 +64,7 @@ void ActionCEL::start() {
}
void ActionCEL::end() {
- if (!_decoder.isVideoLoaded())
- return;
- closeDecoder();
+ _actor->getPage()->getGame()->getDirector()->removeSprite(this);
}
void ActionCEL::pause(bool paused) {
@@ -88,11 +86,6 @@ void ActionCEL::loadDecoder() {
_decoder.loadStream(_actor->getPage()->getResourceStream(_fileName));
}
-void ActionCEL::closeDecoder() {
- _actor->getPage()->getGame()->getDirector()->removeSprite(this);
- _decoder.close();
-}
-
void ActionCEL::setFrame(uint frame) {
_decoder.rewind();