From eeb3743a586b9f5b6bfd30c9b4cfe2879f6ada7b Mon Sep 17 00:00:00 2001 From: Bertrand Augereau Date: Fri, 18 Nov 2011 08:58:08 +0100 Subject: DREAMWEB: Allow quitting in monitor sequences --- engines/dreamweb/monitor.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'engines/dreamweb') 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; -- cgit v1.2.3