X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=main.c;h=f0dbb3a988fe7461a6ecccddfa7463f27467f3d8;hp=1b725c96c71e8bfedf72b3a3ed5372251e168c0f;hb=5cdaa301dcf6ececc1d2a9e340d8da698a9f55d8;hpb=2787cb1413a47a92a084e3ea86694ef7431dfddd diff --git a/main.c b/main.c index 1b725c9..f0dbb3a 100644 --- a/main.c +++ b/main.c @@ -694,14 +694,16 @@ static void playermove( int motion) * to get it out. Having dropped it, go back and * pretend he wasn't carrying it after all. */ drop(EMERALD, game.loc); - int te_tmp = travel_entry; - do { - if (travel[te_tmp].stop) - BUG(CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION); // LCOV_EXCL_LINE - ++te_tmp; - } while - (traveleq(travel_entry, te_tmp)); - travel_entry = te_tmp; + { + int te_tmp = travel_entry; + do { + if (travel[te_tmp].stop) + BUG(CONDITIONAL_TRAVEL_ENTRY_WITH_NO_ALTERATION); // LCOV_EXCL_LINE + ++te_tmp; + } while + (traveleq(travel_entry, te_tmp)); + travel_entry = te_tmp; + } continue; /* goto L12 */ case 3: /* Special travel 3. Troll bridge. Must be done