aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArnaud Boutonné2011-01-26 23:18:26 +0000
committerArnaud Boutonné2011-01-26 23:18:26 +0000
commitb7a8444992b8f17ea553f9e2a2c7a9989e4f0ad6 (patch)
treed3d501e0c928811404de48661bf55051d0e0b5ed
parentdc31f4b3e2ed828fb992a0003bcef25a7077f4fb (diff)
downloadscummvm-rg350-b7a8444992b8f17ea553f9e2a2c7a9989e4f0ad6.tar.gz
scummvm-rg350-b7a8444992b8f17ea553f9e2a2c7a9989e4f0ad6.tar.bz2
scummvm-rg350-b7a8444992b8f17ea553f9e2a2c7a9989e4f0ad6.zip
HUGO: As requested by D. Gray, use 'exit' (DOS) command in Win versions
svn-id: r55557
-rw-r--r--engines/hugo/parser_v1w.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/hugo/parser_v1w.cpp b/engines/hugo/parser_v1w.cpp
index 40366f6f48..65d1d4c884 100644
--- a/engines/hugo/parser_v1w.cpp
+++ b/engines/hugo/parser_v1w.cpp
@@ -118,7 +118,8 @@ void Parser_v1w::lineHandler() {
// Special meta commands
// EXIT/QUIT
if (!strcmp("exit", _vm->_line) || strstr(_vm->_line, "quit")) {
- Utils::Box(kBoxAny, "%s", _vm->_text->getTextParser(kTBExit));
+ if (Utils::Box(kBoxYesNo, "%s", _vm->_text->getTextParser(kTBExit_1d)) != 0)
+ _vm->endGame();
return;
}