MOHAWK: RIVEN: Execute the stored opcode before resetting movies

Otherwise the movie position is zero which leads the comparison with the
stored opcode position to always be false.
Fixes #10426, a regression from cf1171d4d9b43eba.
This commit is contained in:
Bastien Bouclet 2018-02-05 07:30:24 +01:00
parent 9dbffa1763
commit 5322606abe

View File

@ -252,12 +252,6 @@ void RivenVideo::playBlocking(int32 endTime) {
}
}
if (playTillEnd) {
disable();
stop();
seek(0);
}
// Execute the stored opcode
uint16 storedOpcodeMovieSlot = _vm->_scriptMan->getStoredMovieOpcodeSlot();
uint32 storedOpcodeTime = _vm->_scriptMan->getStoredMovieOpcodeTime();
@ -265,6 +259,12 @@ void RivenVideo::playBlocking(int32 endTime) {
_vm->_scriptMan->runStoredMovieOpcode();
}
if (playTillEnd) {
disable();
stop();
seek(0);
}
_vm->_cursor->showCursor();
}