aboutsummaryrefslogtreecommitdiff
path: root/engines/agi/op_cmd.cpp
diff options
context:
space:
mode:
authorTorbjörn Andersson2009-01-06 23:29:58 +0000
committerTorbjörn Andersson2009-01-06 23:29:58 +0000
commit9a9c1a40d9b9eb40747633eae8b8e242042626c9 (patch)
treefdfd49fcbbf590aa4333beb7afcb3390f36bd4d3 /engines/agi/op_cmd.cpp
parent4b24b4d06fc36ed55222ed03b5dfa078eefadfeb (diff)
downloadscummvm-rg350-9a9c1a40d9b9eb40747633eae8b8e242042626c9.tar.gz
scummvm-rg350-9a9c1a40d9b9eb40747633eae8b8e242042626c9.tar.bz2
scummvm-rg350-9a9c1a40d9b9eb40747633eae8b8e242042626c9.zip
Added a few more shouldQuit() checks. It's now possible to quit while, for
instance, Leisure Suit Larry is waiting for you to enter your age. svn-id: r35761
Diffstat (limited to 'engines/agi/op_cmd.cpp')
-rw-r--r--engines/agi/op_cmd.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/agi/op_cmd.cpp b/engines/agi/op_cmd.cpp
index 186002e8cc..70587820f7 100644
--- a/engines/agi/op_cmd.cpp
+++ b/engines/agi/op_cmd.cpp
@@ -1331,7 +1331,7 @@ cmd(get_string) {
do {
g_agi->mainCycle();
- } while (game.inputMode == INPUT_GETSTRING);
+ } while (game.inputMode == INPUT_GETSTRING && !g_agi->shouldQuit());
}
cmd(get_num) {
@@ -1349,7 +1349,7 @@ cmd(get_num) {
do {
g_agi->mainCycle();
- } while (game.inputMode == INPUT_GETSTRING);
+ } while (game.inputMode == INPUT_GETSTRING && !g_agi->shouldQuit());
_v[p1] = atoi(game.strings[MAX_STRINGS]);
debugC(4, kDebugLevelScripts, "[%s] -> %d", game.strings[MAX_STRINGS], _v[p1]);