aboutsummaryrefslogtreecommitdiff
path: root/engines/agi
diff options
context:
space:
mode:
authorTorbjörn Andersson2010-06-15 18:17:51 +0000
committerTorbjörn Andersson2010-06-15 18:17:51 +0000
commit93df097f39dda7b1b0d68a94d0f06b01b9b834b4 (patch)
tree7acd556193b5abd48d45ba566117f8ab46b9a2ee /engines/agi
parenta42ea73a768f52105ef3ac36041db0c5c14ec113 (diff)
downloadscummvm-rg350-93df097f39dda7b1b0d68a94d0f06b01b9b834b4.tar.gz
scummvm-rg350-93df097f39dda7b1b0d68a94d0f06b01b9b834b4.tar.bz2
scummvm-rg350-93df097f39dda7b1b0d68a94d0f06b01b9b834b4.zip
Added the same quit/restart test to print() as we have in so many other places.
This makes it easier to quit the game during the text box in the King's Quest 3 into, and probably other places as well. svn-id: r49881
Diffstat (limited to 'engines/agi')
-rw-r--r--engines/agi/text.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/agi/text.cpp b/engines/agi/text.cpp
index 36a289c47b..778da0a527 100644
--- a/engines/agi/text.cpp
+++ b/engines/agi/text.cpp
@@ -489,7 +489,7 @@ int AgiEngine::print(const char *p, int lin, int col, int len) {
_game.keypress = 0;
break;
}
- } while (_game.msgBoxTicks > 0);
+ } while (_game.msgBoxTicks > 0 && !(shouldQuit() || _restartGame));
setvar(vWindowReset, 0);