ACCESS: Add event polling to cmdVideoEnded to make videos play correctly

This commit is contained in:
Paul Gilbert 2014-08-28 21:55:09 -04:00
parent 661a5694b4
commit a47457084f

View file

@ -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"); }