diff options
-rw-r--r-- | engines/mohawk/video/video.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/engines/mohawk/video/video.cpp b/engines/mohawk/video/video.cpp index d6c6cbcec1..8bdf9d6d8c 100644 --- a/engines/mohawk/video/video.cpp +++ b/engines/mohawk/video/video.cpp @@ -318,24 +318,24 @@ void VideoManager::playMovie(VideoEntry videoEntry) { Common::Event event; while (_vm->_system->getEventManager()->pollEvent(event)) { switch (event.type) { - case Common::EVENT_RTL: - case Common::EVENT_QUIT: + case Common::EVENT_RTL: + case Common::EVENT_QUIT: + continuePlaying = false; + break; + case Common::EVENT_KEYDOWN: + switch (event.kbd.keycode) { + case Common::KEYCODE_SPACE: + _vm->pauseGame(); + break; + case Common::KEYCODE_ESCAPE: continuePlaying = false; break; - case Common::EVENT_KEYDOWN: - switch (event.kbd.keycode) { - case Common::KEYCODE_SPACE: - _vm->pauseGame(); - break; - case Common::KEYCODE_ESCAPE: - continuePlaying = false; - break; - default: - break; - } default: break; } + default: + break; + } } // Cut down on CPU usage |