From 23e6fff0bfb226a2bb7ab84833a9184eee1118d3 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Sat, 3 Jan 2009 13:11:42 +0000 Subject: Make it possible to quit or return to launcher while the Feeble Files list of savegames is scrolling by. (Agonizingly slowly.) svn-id: r35697 --- engines/agos/charset.cpp | 2 +- engines/agos/oracle.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/engines/agos/charset.cpp b/engines/agos/charset.cpp index 1f3017555c..4bbd02ccbd 100644 --- a/engines/agos/charset.cpp +++ b/engines/agos/charset.cpp @@ -38,7 +38,7 @@ void AGOSEngine_Feeble::doOutput(const byte *src, uint len) { if (_textWindow == NULL) return; - while (len-- != 0) { + while (len-- != 0 && !shouldQuit()) { if (getBitFlag(93)) { if (_curWindow == 3) { if ((_newLines >= _textWindow->scrollY) && (_newLines < (_textWindow->scrollY + 3))) diff --git a/engines/agos/oracle.cpp b/engines/agos/oracle.cpp index dfa3b801d7..64772101ba 100644 --- a/engines/agos/oracle.cpp +++ b/engines/agos/oracle.cpp @@ -383,7 +383,7 @@ void AGOSEngine_Feeble::listSaveGames(int n) { z++; } - while (1) { + while (!shouldQuit()) { OK = 1; if (getBitFlag(93) || getBitFlag(94)) { OK = 0; @@ -407,7 +407,7 @@ void AGOSEngine_Feeble::listSaveGames(int n) { showMessageFormat("\n"); hyperLinkOn(j + 400); setTextColor(116); - showMessageFormat(" %d. ",1); + showMessageFormat(" %d. ", 1); hyperLinkOff(); setTextColor(113); k++; @@ -425,9 +425,9 @@ void AGOSEngine_Feeble::listSaveGames(int n) { setTextColor(116); if (k < 10) showMessageFormat(" "); - showMessageFormat("%d. ",k); + showMessageFormat("%d. ", k); setTextColor(113); - showMessageFormat("%s ",b); + showMessageFormat("%s ", b); hyperLinkOff(); j--; k++; -- cgit v1.2.3