diff options
-rw-r--r-- | engines/access/scripts.cpp | 7 | ||||
-rw-r--r-- | engines/access/scripts.h | 2 |
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; |