MYST3: Properly reset the movie scripts

This commit is contained in:
Bastien Bouclet 2014-09-17 21:11:10 +02:00
parent 149f8f5739
commit 85d5551d3b
2 changed files with 8 additions and 1 deletions

View File

@ -32,7 +32,7 @@ namespace Myst3 {
DirectorySubEntry::DirectorySubEntry(Archive *archive) :
_archive(archive) {
for (uint i = 0; i < 22; i++) {
for (uint i = 0; i < ARRAYSIZE(_miscData); i++) {
_miscData[i] = 0;
}
}

View File

@ -1064,6 +1064,13 @@ void Myst3Engine::playSimpleMovie(uint16 id, bool fullframe) {
}
_drawables.pop_back();
// Reset the movie script so that the next movie will not try to run them
// when the user has skipped this one before the script is triggered.
_state->setMovieScriptStartFrame(0);
_state->setMovieScript(0);
_state->setMovieAmbiantScriptStartFrame(0);
_state->setMovieAmbiantScript(0);
}
void Myst3Engine::removeMovie(uint16 id) {