From a4e08d94fce35313a1e71c0ab6d7a2687939aca2 Mon Sep 17 00:00:00 2001 From: Torbjörn Andersson Date: Fri, 19 Dec 2008 21:22:26 +0000 Subject: Allow quitting / returning to launcher while showing "selection boxes", e.g. the pause game dialog. svn-id: r35445 --- 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 63cea67072..99031612f0 100644 --- a/engines/agi/text.cpp +++ b/engines/agi/text.cpp @@ -364,7 +364,7 @@ int AgiEngine::selectionBox(const char *m, const char **b) { AllowSyntheticEvents on(this); debugC(4, kDebugLevelText, "waiting..."); - for (;;) { + while (!shouldQuit()) { for (i = 0; b[i]; i++) _gfx->drawCurrentStyleButton(bx[i], by[i], b[i], i == active, false, i == 0); -- cgit v1.2.3