From: Eric S. Raymond Date: Fri, 26 May 2017 09:14:18 +0000 (-0400) Subject: Fix bug that led to comments bnot being ignored. X-Git-Tag: seed~44 X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=d2643712dd5662f518d72db46f652dba4ce958ee;p=open-adventure.git Fix bug that led to comments bnot being ignored. --- diff --git a/misc.c b/misc.c index 8ea3db4..a656cbc 100644 --- a/misc.c +++ b/misc.c @@ -888,9 +888,9 @@ long I, VAL; if (!oldstyle && SETUP && OPENED == stdin) fputs("> ", stdout); do { - IGNORE(fgets(rawbuf,sizeof(INLINE)-1,OPENED)); + IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,OPENED)); } while - (!feof(OPENED) && INLINE[1] == '#'); + (!feof(OPENED) && rawbuf[0] == '#'); if (feof(OPENED)) { if (logfp && OPENED == stdin) fclose(logfp); diff --git a/tests/death-jump.chk b/tests/death-jump.chk index 6bc9e72..55e648c 100644 --- a/tests/death-jump.chk +++ b/tests/death-jump.chk @@ -1,10 +1,6 @@ Welcome to Adventure!! Would you like instructions? -> ##First death by jump into fissure - -Please stick to 1- and 2-word commands. - > n You are standing at the end of a road before a small brick building. diff --git a/tests/dwarf.chk b/tests/dwarf.chk index d2c9d79..fcf3a1e 100644 --- a/tests/dwarf.chk +++ b/tests/dwarf.chk @@ -1,10 +1,6 @@ Welcome to Adventure!! Would you like instructions? -> ## Dwarf appears in soutth side chamber, where the coins are. - -Please stick to 1- and 2-word commands. - > n You are standing at the end of a road before a small brick building. diff --git a/tests/quit.chk b/tests/quit.chk index 183d633..87a8d98 100644 --- a/tests/quit.chk +++ b/tests/quit.chk @@ -1,10 +1,6 @@ Welcome to Adventure!! Would you like instructions? -> ##Just straight quit. - -Please stick to 1- and 2-word commands. - > n You are standing at the end of a road before a small brick building.