aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorPaul Gilbert2019-06-22 22:18:20 -0700
committerPaul Gilbert2019-06-23 14:41:49 -0700
commitb2b78f48f0ef5de7253df428cd53115e4a88a84d (patch)
tree0b071610dad9cd417f6be43fbc0523f352a80fac /engines
parent544c8413431369705ec0dd29733b1536a85fdd52 (diff)
downloadscummvm-rg350-b2b78f48f0ef5de7253df428cd53115e4a88a84d.tar.gz
scummvm-rg350-b2b78f48f0ef5de7253df428cd53115e4a88a84d.tar.bz2
scummvm-rg350-b2b78f48f0ef5de7253df428cd53115e4a88a84d.zip
GLK: ALAN2: Fixes for restarting in-game
Diffstat (limited to 'engines')
-rw-r--r--engines/glk/alan2/exe.cpp6
-rw-r--r--engines/glk/alan2/main.cpp2
2 files changed, 4 insertions, 4 deletions
diff --git a/engines/glk/alan2/exe.cpp b/engines/glk/alan2/exe.cpp
index 2acd9d2885..5ff79c88f4 100644
--- a/engines/glk/alan2/exe.cpp
+++ b/engines/glk/alan2/exe.cpp
@@ -178,13 +178,13 @@ void quit(CONTEXT) {
CALL1(terminate, 0)
}
- if (strcmp(buf, "restart") == 0) {
+ if (scumm_stricmp(buf, "restart") == 0) {
g_vm->setRestart(true);
LONG_JUMP
- } else if (strcmp(buf, "restore") == 0) {
+ } else if (scumm_stricmp(buf, "restore") == 0) {
restore();
LONG_JUMP
- } else if (strcmp(buf, "quit") == 0) {
+ } else if (scumm_stricmp(buf, "quit") == 0) {
CALL1(terminate, 0)
}
}
diff --git a/engines/glk/alan2/main.cpp b/engines/glk/alan2/main.cpp
index e6d2226d24..1371ace2e1 100644
--- a/engines/glk/alan2/main.cpp
+++ b/engines/glk/alan2/main.cpp
@@ -1422,7 +1422,7 @@ void run() {
init();
Context ctx;
- while (!g_vm->shouldQuit()) {
+ while (!g_vm->shouldQuit() && !g_vm->shouldRestart()) {
if (!ctx._break) {
if (dbgflg)
debug();