aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStrangerke2014-11-23 23:51:25 +0100
committerPaul Gilbert2014-12-12 22:40:35 -0500
commit08c65399002ffa7c1d5f055c242996ff0f416fad (patch)
tree6ecea2de5cee6f8e216d3b0da367f1356a63c662
parentddfe7395546e9b932280d7aae9e6455dbb4d9989 (diff)
downloadscummvm-rg350-08c65399002ffa7c1d5f055c242996ff0f416fad.tar.gz
scummvm-rg350-08c65399002ffa7c1d5f055c242996ff0f416fad.tar.bz2
scummvm-rg350-08c65399002ffa7c1d5f055c242996ff0f416fad.zip
ACCESS: Implement cmdEndVideo
-rw-r--r--engines/access/scripts.cpp7
-rw-r--r--engines/access/scripts.h2
2 files changed, 6 insertions, 3 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp
index 2336e78041..d4bd5ad644 100644
--- a/engines/access/scripts.cpp
+++ b/engines/access/scripts.cpp
@@ -133,7 +133,7 @@ void Scripts::executeCommand(int commandIndex) {
&Scripts::CMDPUSHLOCATION, &Scripts::CMDPUSHLOCATION, &Scripts::CMDPUSHLOCATION,
&Scripts::CMDPUSHLOCATION, &Scripts::CMDPUSHLOCATION, &Scripts::cmdPlayerOff,
&Scripts::cmdPlayerOn, &Scripts::cmdDead, &Scripts::cmdFadeOut,
- &Scripts::CMDENDVID
+ &Scripts::cmdEndVideo
};
(this->*COMMAND_LIST[commandIndex])();
@@ -862,6 +862,9 @@ void Scripts::cmdFadeOut() {
_vm->_screen->forceFadeOut();
}
-void Scripts::CMDENDVID() { error("TODO CMDENDVID"); }
+void Scripts::cmdEndVideo() {
+ _vm->_video->closeVideo();
+ _vm->_video->_videoEnd = true;
+}
} // End of namespace Access
diff --git a/engines/access/scripts.h b/engines/access/scripts.h
index ebee79d458..b6a3dc4dd9 100644
--- a/engines/access/scripts.h
+++ b/engines/access/scripts.h
@@ -122,7 +122,7 @@ protected:
void cmdDead();
void cmdDead(int deathId);
void cmdFadeOut();
- void CMDENDVID();
+ void cmdEndVideo();
public:
int _sequence;
bool _endFlag;