aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle/prog.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2012-01-20 17:22:54 +1100
committerStrangerke2012-04-06 08:20:15 +0200
commit7d6b859df58f5ac9cf126e50ff5b0c25cd57850a (patch)
tree97072ee9720839c5c236fa3f240371fd47c40399 /engines/mortevielle/prog.cpp
parent412124baa66628c1d2b6804db0ce748b45e5a4cc (diff)
downloadscummvm-rg350-7d6b859df58f5ac9cf126e50ff5b0c25cd57850a.tar.gz
scummvm-rg350-7d6b859df58f5ac9cf126e50ff5b0c25cd57850a.tar.bz2
scummvm-rg350-7d6b859df58f5ac9cf126e50ff5b0c25cd57850a.zip
MORTEVIELLE: Added explicit quit checks to the main game loops
Diffstat (limited to 'engines/mortevielle/prog.cpp')
-rw-r--r--engines/mortevielle/prog.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/engines/mortevielle/prog.cpp b/engines/mortevielle/prog.cpp
index 236e785199..41615219d4 100644
--- a/engines/mortevielle/prog.cpp
+++ b/engines/mortevielle/prog.cpp
@@ -30,6 +30,7 @@
#include "mortevielle/menu.h"
#include "mortevielle/mor.h"
#include "mortevielle/mor2.h"
+#include "mortevielle/mortevielle.h"
#include "mortevielle/prog.h"
#include "mortevielle/taffich.h"
#include "mortevielle/var_mor.h"
@@ -265,6 +266,7 @@ void tecran() {
mdn();
tinke();
mov_mouse(funct, inkey);
+ CHECK_QUIT;
temps = temps + 1;
} while (!((choisi) || (temps > lim) || (funct) || (anyone)));
@@ -348,6 +350,7 @@ void tjouer() {
antegame();
do {
tecran();
+ CHECK_QUIT;
} while (!((arret) || (solu) || (perdu)));
if (solu) tmaj1();
else if (perdu) tencore();