diff options
author | Kirben | 2014-03-04 20:08:40 +1100 |
---|---|---|
committer | Kirben | 2014-03-04 20:08:40 +1100 |
commit | c049ab0ef0a31a64c518d2faa34092d5ca44bdd5 (patch) | |
tree | 396b1b739a8661594c8788acc7cb5f31693bf623 | |
parent | c10cda236b10d817ba1bb098d2c43dda91b1775c (diff) | |
download | scummvm-rg350-c049ab0ef0a31a64c518d2faa34092d5ca44bdd5.tar.gz scummvm-rg350-c049ab0ef0a31a64c518d2faa34092d5ca44bdd5.tar.bz2 scummvm-rg350-c049ab0ef0a31a64c518d2faa34092d5ca44bdd5.zip |
AGOS: Fix quitting during Oracle text scroll in The Feeble Files.
-rw-r--r-- | engines/agos/oracle.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |