aboutsummaryrefslogtreecommitdiff
path: root/engines/mortevielle
diff options
context:
space:
mode:
authorStrangerke2012-02-24 12:03:54 +0100
committerStrangerke2012-04-06 08:21:57 +0200
commit7a6eca74b414986ef9d38c524b7a0cfcee68ae4b (patch)
treed852ffb548b0075fb22c51d7b8d7c0e247cca77c /engines/mortevielle
parent0dea84d47bd0e05f2e80d198bec4826b494a9f77 (diff)
downloadscummvm-rg350-7a6eca74b414986ef9d38c524b7a0cfcee68ae4b.tar.gz
scummvm-rg350-7a6eca74b414986ef9d38c524b7a0cfcee68ae4b.tar.bz2
scummvm-rg350-7a6eca74b414986ef9d38c524b7a0cfcee68ae4b.zip
MORTEVIELLE: remove a couple of GOTOs
Diffstat (limited to 'engines/mortevielle')
-rw-r--r--engines/mortevielle/prog.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/engines/mortevielle/prog.cpp b/engines/mortevielle/prog.cpp
index 0c05e81cdb..96083f1fc8 100644
--- a/engines/mortevielle/prog.cpp
+++ b/engines/mortevielle/prog.cpp
@@ -167,7 +167,8 @@ void tsitu() {
if (brt)
if ((msg[3] == MENU_MOVE) || (msg[4] == OPCODE_LEAVE) || (msg[4] == OPCODE_SLEEP) || (msg[4] == OPCODE_EAT)) {
ctrm = 4;
- goto L2;
+ mennor();
+ return;
}
if (msg[3] == MENU_MOVE)
fctMove();
@@ -234,7 +235,8 @@ L1:
if (anyone) {
quelquun();
anyone = false;
- goto L2;
+ mennor();
+ return;
}
calch(j, h, m);
if ((((h == 12) || (h == 13) || (h == 19)) && (s.mlieu != 10)) ||
@@ -255,7 +257,6 @@ L1:
tperd();
}
}
-L2:
mennor();
}