aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBertrand Augereau2011-11-18 08:58:08 +0100
committerBertrand Augereau2011-11-18 08:58:08 +0100
commiteeb3743a586b9f5b6bfd30c9b4cfe2879f6ada7b (patch)
tree59b12fe6b989e0c511e7852813a0db1679934a10
parentf455e609c9109abb32132efab05eb6d635a4ca75 (diff)
downloadscummvm-rg350-eeb3743a586b9f5b6bfd30c9b4cfe2879f6ada7b.tar.gz
scummvm-rg350-eeb3743a586b9f5b6bfd30c9b4cfe2879f6ada7b.tar.bz2
scummvm-rg350-eeb3743a586b9f5b6bfd30c9b4cfe2879f6ada7b.zip
DREAMWEB: Allow quitting in monitor sequences
-rw-r--r--engines/dreamweb/monitor.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/engines/dreamweb/monitor.cpp b/engines/dreamweb/monitor.cpp
index d53b0b2d9a..cbd1bc8c96 100644
--- a/engines/dreamweb/monitor.cpp
+++ b/engines/dreamweb/monitor.cpp
@@ -85,6 +85,8 @@ void DreamGenContext::usemon() {
data.word(kMonadx) = di;
data.word(kMonady) = bx;
execcommand();
+ if (data.byte(kQuitrequested)) //TODO : Check why it crashes when put before the execcommand
+ break;
} while (al == 0);
getridoftemp();
getridoftempcharset();
@@ -119,6 +121,8 @@ void DreamGenContext::input() {
vsync();
delcurs();
readkey();
+ if (data.byte(kQuitrequested))
+ return;
uint8 currentKey = data.byte(kCurrentkey);
if (currentKey == 0)
continue;