More goto eliminations.
This commit is contained in:
parent
6319d27481
commit
b22d6a65b9
1 changed files with 18 additions and 21 deletions
39
actions.c
39
actions.c
|
@ -1108,29 +1108,26 @@ L5100:
|
||||||
goto L5010;
|
goto L5010;
|
||||||
if ((LIQ(0) == obj && HERE(BOTTLE)) || obj == LIQLOC(game.loc))
|
if ((LIQ(0) == obj && HERE(BOTTLE)) || obj == LIQLOC(game.loc))
|
||||||
goto L5010;
|
goto L5010;
|
||||||
if (obj != OIL || !HERE(URN) || game.prop[URN] == 0)
|
if (obj == OIL && HERE(URN) && game.prop[URN] != 0) {
|
||||||
goto L5120;
|
obj=URN;
|
||||||
obj=URN;
|
goto L5010;
|
||||||
goto L5010;
|
}
|
||||||
L5120:
|
if (obj == PLANT && AT(PLANT2) && game.prop[PLANT2] != 0) {
|
||||||
if (obj != PLANT || !AT(PLANT2) || game.prop[PLANT2] == 0)
|
obj=PLANT2;
|
||||||
goto L5130;
|
goto L5010;
|
||||||
obj=PLANT2;
|
}
|
||||||
goto L5010;
|
if (obj == KNIFE && game.knfloc == game.loc) {
|
||||||
L5130:
|
game.knfloc= -1;
|
||||||
if (obj != KNIFE || game.knfloc != game.loc)
|
SPK=116;
|
||||||
goto L5140;
|
return(2011);
|
||||||
game.knfloc= -1;
|
}
|
||||||
SPK=116;
|
if (obj == ROD && HERE(ROD2)) {
|
||||||
return(2011);
|
obj=ROD2;
|
||||||
L5140:
|
goto L5010;
|
||||||
if (obj != ROD || !HERE(ROD2))
|
}
|
||||||
goto L5190;
|
|
||||||
obj=ROD2;
|
|
||||||
goto L5010;
|
|
||||||
L5190:
|
|
||||||
if ((verb == FIND || verb == INVENT) && WD2 <= 0)
|
if ((verb == FIND || verb == INVENT) && WD2 <= 0)
|
||||||
goto L5010;
|
goto L5010;
|
||||||
|
|
||||||
SETPRM(1,WD1,WD1X);
|
SETPRM(1,WD1,WD1X);
|
||||||
RSPEAK(256);
|
RSPEAK(256);
|
||||||
return(2012);
|
return(2012);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue