From 93df097f39dda7b1b0d68a94d0f06b01b9b834b4 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Tue, 15 Jun 2010 18:17:51 +0000 Subject: 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 --- engines/agi/text.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.3