mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-09 11:20:56 +00:00
MYST3: Properly reset the movie scripts
This commit is contained in:
parent
149f8f5739
commit
85d5551d3b
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user