aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-01-03 13:11:42 +0000
committerTorbjörn Andersson2009-01-03 13:11:42 +0000
commit23e6fff0bfb226a2bb7ab84833a9184eee1118d3 (patch)
treecd56bc02755a1346f253a9e2a3f001227a0e6838
parent5de6898694ab3588b1843846bd18f94ee1ac2314 (diff)
downloadscummvm-rg350-23e6fff0bfb226a2bb7ab84833a9184eee1118d3.tar.gz
scummvm-rg350-23e6fff0bfb226a2bb7ab84833a9184eee1118d3.tar.bz2
scummvm-rg350-23e6fff0bfb226a2bb7ab84833a9184eee1118d3.zip
Make it possible to quit or return to launcher while the Feeble Files list of
savegames is scrolling by. (Agonizingly slowly.) svn-id: r35697
-rw-r--r--engines/agos/charset.cpp2
-rw-r--r--engines/agos/oracle.cpp8
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++;