From c049ab0ef0a31a64c518d2faa34092d5ca44bdd5 Mon Sep 17 00:00:00 2001 From: Kirben Date: Tue, 4 Mar 2014 20:08:40 +1100 Subject: AGOS: Fix quitting during Oracle text scroll in The Feeble Files. --- engines/agos/oracle.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'engines') diff --git a/engines/agos/oracle.cpp b/engines/agos/oracle.cpp index 782c834868..122f800e78 100644 --- a/engines/agos/oracle.cpp +++ b/engines/agos/oracle.cpp @@ -180,7 +180,7 @@ void AGOSEngine_Feeble::oracleTextUp() { if (_textWindow->scrollY > _oracleMaxScrollY) // For scroll up _oracleMaxScrollY = _textWindow->scrollY; - while (1) { + while (!shouldQuit()) { if (_textWindow->scrollY == _oracleMaxScrollY) break; _textWindow->textRow = 105; @@ -214,7 +214,7 @@ void AGOSEngine_Feeble::oracleTextDown() { if (_textWindow->scrollY > _oracleMaxScrollY) // For scroll up _oracleMaxScrollY = _textWindow->scrollY; - while (1) { + while (!shouldQuit()) { if (_textWindow->scrollY == 0) break; -- cgit v1.2.3