ACCESS: Add event polling to cmdVideoEnded to make videos play correctly
This commit is contained in:
parent
661a5694b4
commit
a47457084f
1 changed files with 6 additions and 2 deletions
|
@ -458,10 +458,14 @@ void Scripts::cmdSetScroll() {
|
|||
}
|
||||
|
||||
void Scripts::cmdVideoEnded() {
|
||||
if (_vm->_video->_videoEnd)
|
||||
_vm->_events->pollEvents();
|
||||
|
||||
if (_vm->_video->_videoEnd) {
|
||||
cmdGoto();
|
||||
else
|
||||
} else {
|
||||
g_system->delayMillis(10);
|
||||
_data->skip(2);
|
||||
}
|
||||
}
|
||||
|
||||
void Scripts::CMDSETBUFVID() { error("TODO CMDSETBUFVID"); }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue