X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=e5859b613622cd108ebda83fbb0033b5e74cbac8;hb=00514b079380c064b91f7ab95fec7e793a365d46;hp=94eca9848fec8f838af05af302962752de24692f;hpb=409ffe4a8672f41501667941cf10bd2dee1bb743;p=open-adventure.git diff --git a/main.c b/main.c index 94eca98..e5859b6 100644 --- a/main.c +++ b/main.c @@ -623,6 +623,7 @@ static bool playermove(FILE *cmdin, token_t verb, int motion) /* else fall through */ } else if (game.prop[motion] != game.newloc / 100 - 3) break; + L12: do { if (TRAVEL[kk] < 0)BUG(25); ++kk; @@ -656,13 +657,7 @@ static bool playermove(FILE *cmdin, token_t verb, int motion) * plover-passage to get it out. Having dropped it, go back and * pretend he wasn't carrying it after all. */ DROP(EMRALD, game.loc); - do { - if (TRAVEL[kk] < 0)BUG(25); - ++kk; - game.newloc = labs(TRAVEL[kk]) / 1000; - } while - (game.newloc == scratchloc); - continue; /* back to top of do/while loop */ + goto L12; case 3: /* Travel 303. Troll bridge. Must be done only as special * motion so that dwarves won't wander across and encounter