diff options
-rw-r--r-- | engines/groovie/groovie.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/engines/groovie/groovie.cpp b/engines/groovie/groovie.cpp index c30154ba01..c0e4428a88 100644 --- a/engines/groovie/groovie.cpp +++ b/engines/groovie/groovie.cpp @@ -123,7 +123,7 @@ Common::Error GroovieEngine::init() { // A new entry index++; } else if (line.hasPrefix("boot: ") && index == _gameDescription->indexEntry) { - // It's the boot of the entry were looking for, + // It's the boot of the entry we're looking for, // get the script filename filename = line.c_str() + 6; found = true; @@ -219,6 +219,12 @@ Common::Error GroovieEngine::go() { } } + // The event loop may have triggered the quit status. In this case, + // stop the execution. + if (shouldQuit()) { + continue; + } + if (_waitingForInput) { // Still waiting for input, just update the mouse, game timer and then wait a bit more _cursorMan->animate(); |