ACCESS: Implement cmdEndVideo

This commit is contained in:
Strangerke 2014-11-23 23:51:25 +01:00 committed by Paul Gilbert
parent ddfe739554
commit 08c6539900
2 changed files with 6 additions and 3 deletions

View File

@ -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

View File

@ -122,7 +122,7 @@ protected:
void cmdDead();
void cmdDead(int deathId);
void cmdFadeOut();
void CMDENDVID();
void cmdEndVideo();
public:
int _sequence;
bool _endFlag;