aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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++;