X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=5288e43b24f2aab08821096da64baff39afe2ff8;hb=c366ddb7334cf85dba1f0dc75a68a8a094960aa3;hp=a74aa6b2b44ca76b811910f1ecaca8e029b82bb6;hpb=66c22301edf3126e7525e1c52efdde8fb69e0257;p=open-adventure.git diff --git a/main.c b/main.c index a74aa6b..5288e43 100644 --- a/main.c +++ b/main.c @@ -606,6 +606,7 @@ static bool playermove(FILE *cmdin, token_t verb, int motion) } LL=LL/1000; + L12: for (;;) { game.newloc=LL/1000; motion=MOD(game.newloc,100); @@ -620,7 +621,6 @@ static bool playermove(FILE *cmdin, token_t verb, int motion) } else if (game.prop[motion] != game.newloc/100-3) break; - L12: do { if (TRAVEL[KK] < 0)BUG(25); ++KK; @@ -654,6 +654,12 @@ 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 == LL); goto L12; case 3: /* Travel 303. Troll bridge. Must be done only as special