diff options
author | Matthew Hoops | 2011-01-14 16:39:34 +0000 |
---|---|---|
committer | Matthew Hoops | 2011-01-14 16:39:34 +0000 |
commit | 0eeacfe43eca0a6dc178881ef517cc9a6c8cb410 (patch) | |
tree | bb6b5476174d3ea8cd16a342cdb6b53bce094545 /engines/mohawk/riven_external.cpp | |
parent | 311c643c1e01982bbdd7dd0716ddfc61a3f153ce (diff) | |
download | scummvm-rg350-0eeacfe43eca0a6dc178881ef517cc9a6c8cb410.tar.gz scummvm-rg350-0eeacfe43eca0a6dc178881ef517cc9a6c8cb410.tar.bz2 scummvm-rg350-0eeacfe43eca0a6dc178881ef517cc9a6c8cb410.zip |
MOHAWK: Simplify some code
svn-id: r55242
Diffstat (limited to 'engines/mohawk/riven_external.cpp')
-rw-r--r-- | engines/mohawk/riven_external.cpp | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/engines/mohawk/riven_external.cpp b/engines/mohawk/riven_external.cpp index cffcc7156f..ec6c204389 100644 --- a/engines/mohawk/riven_external.cpp +++ b/engines/mohawk/riven_external.cpp @@ -1707,16 +1707,7 @@ void RivenExternal::xbookclick(uint16 argc, uint16 *argv) { } // There was no click, so just play the rest of the video. - while (!_vm->_video->endOfVideo(video) && !_vm->shouldQuit()) { - if (_vm->_video->updateBackgroundMovies()) - _vm->_system->updateScreen(); - - Common::Event event; - while (_vm->_system->getEventManager()->pollEvent(event)) - ; - - _vm->_system->delayMillis(10); - } + _vm->_video->waitUntilMovieEnds(video); } void RivenExternal::xooffice30_closebook(uint16 argc, uint16 *argv) { |