From df7465232108c15ca613db0b5e709e34378dbd8c Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Wed, 19 Jun 2019 20:38:48 -0700 Subject: GLK: ALAN2: Added shouldQuit checks to break out of game loops --- engines/glk/alan2/exe.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines/glk/alan2/exe.cpp') diff --git a/engines/glk/alan2/exe.cpp b/engines/glk/alan2/exe.cpp index 1cccf3d32d..9b06943257 100644 --- a/engines/glk/alan2/exe.cpp +++ b/engines/glk/alan2/exe.cpp @@ -236,7 +236,7 @@ void quit() char choices[10]; para(); - while (TRUE) { + while (!g_vm->shouldQuit()) { col = 1; statusline(); prmsg(M_QUITACTION); -- cgit v1.2.3