mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-22 12:12:16 +00:00
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:
parent
9dbffa1763
commit
5322606abe
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user