diff options
author | Paul Gilbert | 2014-08-28 21:55:09 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-08-28 21:55:09 -0400 |
commit | a47457084f10faf49f002a0350bc9a832309e11d (patch) | |
tree | aaa028caae06bca7931a9109ba8d6d4ca495ec78 | |
parent | 661a5694b4bf91e61d62fbabf0294c5815cf85f6 (diff) | |
download | scummvm-rg350-a47457084f10faf49f002a0350bc9a832309e11d.tar.gz scummvm-rg350-a47457084f10faf49f002a0350bc9a832309e11d.tar.bz2 scummvm-rg350-a47457084f10faf49f002a0350bc9a832309e11d.zip |
ACCESS: Add event polling to cmdVideoEnded to make videos play correctly
-rw-r--r-- | engines/access/scripts.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/engines/access/scripts.cpp b/engines/access/scripts.cpp index ad806de056..c5b7d952da 100644 --- a/engines/access/scripts.cpp +++ b/engines/access/scripts.cpp @@ -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"); } |