X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=aa7a900fa8934328900f7a269ffd82d728587d7a;hb=31f27b672c05df602fa1cc9cb5f64f0ef7cb3d80;hp=72c40f39f2ce3aeea0679d8d45258c3f8e028bb5;hpb=d6dab20801dc0df6c998df927ae325a3dc34fee7;p=open-adventure.git diff --git a/main.c b/main.c index 72c40f3..aa7a900 100644 --- a/main.c +++ b/main.c @@ -29,9 +29,6 @@ struct game_t game; -long LNLENG, LNPOSN; -char rawbuf[LINESIZE], INLINE[LINESIZE + 1]; - FILE *logfp = NULL, *rfp = NULL; bool oldstyle = false; bool editline = true; @@ -995,7 +992,7 @@ static bool do_command() rspeak(TAME_BEAR); speak(msg); if (FORCED(game.loc)) { - if (playermove(MOT_1)) + if (playermove(HERE)) return true; else continue; /* back to top of main interpreter loop */ @@ -1184,7 +1181,6 @@ Laction: default: BUG(ACTION_RETURNED_PHASE_CODE_BEYOND_END_OF_SWITCH); // LCOV_EXCL_LINE } - linenoiseFree(input); } }