aboutsummaryrefslogtreecommitdiff
path: root/engines/mohawk/riven_external.cpp
diff options
context:
space:
mode:
authorMatthew Hoops2011-01-14 16:39:34 +0000
committerMatthew Hoops2011-01-14 16:39:34 +0000
commit0eeacfe43eca0a6dc178881ef517cc9a6c8cb410 (patch)
treebb6b5476174d3ea8cd16a342cdb6b53bce094545 /engines/mohawk/riven_external.cpp
parent311c643c1e01982bbdd7dd0716ddfc61a3f153ce (diff)
downloadscummvm-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.cpp11
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) {