diff options
Diffstat (limited to 'engines/dreamweb')
-rw-r--r-- | engines/dreamweb/monitor.cpp | 4 |
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; |