aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorFilippos Karapetis2015-02-26 01:15:54 +0200
committerEugene Sandulenko2015-12-15 00:05:02 +0100
commitcc0baf48ed9a545a04d4d8f84213bdda3223ccc4 (patch)
tree0d47c3bea6876dbba5e2b4abb530790352e189bb /engines
parent4cf271054ab215d78f746c0596f86ef7c72f81c0 (diff)
downloadscummvm-rg350-cc0baf48ed9a545a04d4d8f84213bdda3223ccc4.tar.gz
scummvm-rg350-cc0baf48ed9a545a04d4d8f84213bdda3223ccc4.tar.bz2
scummvm-rg350-cc0baf48ed9a545a04d4d8f84213bdda3223ccc4.zip
LAB: Check for engine quit events
Diffstat (limited to 'engines')
-rw-r--r--engines/lab/engine.cpp2
-rw-r--r--engines/lab/intro.cpp8
2 files changed, 8 insertions, 2 deletions
diff --git a/engines/lab/engine.cpp b/engines/lab/engine.cpp
index 2916186541..69ebae6548 100644
--- a/engines/lab/engine.cpp
+++ b/engines/lab/engine.cpp
@@ -741,7 +741,7 @@ static void mainGameLoop() {
WSDL_ProcessInput(1);
if (GotMessage) {
- if (QuitLab) {
+ if (QuitLab || g_engine->shouldQuit()) {
stopDiff();
break;
}
diff --git a/engines/lab/intro.cpp b/engines/lab/intro.cpp
index e37b347d68..7f0b53f98d 100644
--- a/engines/lab/intro.cpp
+++ b/engines/lab/intro.cpp
@@ -69,11 +69,17 @@ void introEatMessages() {
while (1) {
Msg = getMsg();
+ if (g_engine->shouldQuit()) {
+ QuitIntro = true;
+ return;
+ }
+
if (Msg == NULL)
return;
else {
if (((Msg->Class == MOUSEBUTTONS) && (IEQUALIFIER_RBUTTON & Msg->Qualifier)) ||
- ((Msg->Class == RAWKEY) && (Msg->Code == 27)))
+ ((Msg->Class == RAWKEY) && (Msg->Code == 27))
+ )
QuitIntro = true;
replyMsg(Msg);