diff options
author | Strangerke | 2015-12-16 00:07:31 +0100 |
---|---|---|
committer | Willem Jan Palenstijn | 2015-12-23 21:34:06 +0100 |
commit | eab6682929d47d09c0ac81921f479e46a06e93bd (patch) | |
tree | 797c8d86eb5612351d6537c87fa0a8d3022a6282 /engines/lab/intro.cpp | |
parent | 3f1bb66959dbe72444d7cd1bc36609bf1e3e2f77 (diff) | |
download | scummvm-rg350-eab6682929d47d09c0ac81921f479e46a06e93bd.tar.gz scummvm-rg350-eab6682929d47d09c0ac81921f479e46a06e93bd.tar.bz2 scummvm-rg350-eab6682929d47d09c0ac81921f479e46a06e93bd.zip |
LAB: Add some checks to quit the game quickly when closing ScummVM
Diffstat (limited to 'engines/lab/intro.cpp')
-rw-r--r-- | engines/lab/intro.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp index 86007c0ec3..f49a860d3f 100644 --- a/engines/lab/intro.cpp +++ b/engines/lab/intro.cpp @@ -126,8 +126,12 @@ void Intro::doPictText(const char *filename, TextFont *msgFont, bool isScreen) { } IntuiMessage *msg = _vm->_event->getMsg(); + if (g_engine->shouldQuit()) { + _quitIntro = true; + return; + } - if (msg == NULL) { + if (!msg) { _vm->_music->updateMusic(); _vm->_anim->diffNextFrame(); |