diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index 2336e780412..d4bd5ad6444 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 ebee79d4581..b6a3dc4dd9d 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;