aboutsummaryrefslogtreecommitdiff
path: root/engines/avalanche
diff options
context:
space:
mode:
Diffstat (limited to 'engines/avalanche')
-rw-r--r--engines/avalanche/scrolls.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/avalanche/scrolls.cpp b/engines/avalanche/scrolls.cpp
index 2b8e11487d..67c8fbd9c0 100644
--- a/engines/avalanche/scrolls.cpp
+++ b/engines/avalanche/scrolls.cpp
@@ -130,7 +130,8 @@ void Scrolls::scrollModeNormal() {
_vm->_graphics->refreshScreen();
_vm->getEvent(event);
- if ((event.type == Common::EVENT_LBUTTONUP) ||
+ if (_vm->shouldQuit() ||
+ (event.type == Common::EVENT_LBUTTONUP) ||
((event.type == Common::EVENT_KEYDOWN) && ((event.kbd.keycode == Common::KEYCODE_ESCAPE)
|| (event.kbd.keycode == Common::KEYCODE_RETURN) || (event.kbd.keycode == Common::KEYCODE_HASH)
|| (event.kbd.keycode == Common::KEYCODE_PLUS))))