Fix bug that led to comments bnot being ignored.

This commit is contained in:
Eric S. Raymond 2017-05-26 05:14:18 -04:00
parent df23b58032
commit d2643712dd
4 changed files with 2 additions and 14 deletions

4
misc.c
View file

@ -888,9 +888,9 @@ long I, VAL;
if (!oldstyle && SETUP && OPENED == stdin) if (!oldstyle && SETUP && OPENED == stdin)
fputs("> ", stdout); fputs("> ", stdout);
do { do {
IGNORE(fgets(rawbuf,sizeof(INLINE)-1,OPENED)); IGNORE(fgets(rawbuf,sizeof(rawbuf)-1,OPENED));
} while } while
(!feof(OPENED) && INLINE[1] == '#'); (!feof(OPENED) && rawbuf[0] == '#');
if (feof(OPENED)) { if (feof(OPENED)) {
if (logfp && OPENED == stdin) if (logfp && OPENED == stdin)
fclose(logfp); fclose(logfp);

View file

@ -1,10 +1,6 @@
Welcome to Adventure!! Would you like instructions? Welcome to Adventure!! Would you like instructions?
> ##First death by jump into fissure
Please stick to 1- and 2-word commands.
> n > n
You are standing at the end of a road before a small brick building. You are standing at the end of a road before a small brick building.

View file

@ -1,10 +1,6 @@
Welcome to Adventure!! Would you like instructions? 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 > n
You are standing at the end of a road before a small brick building. You are standing at the end of a road before a small brick building.

View file

@ -1,10 +1,6 @@
Welcome to Adventure!! Would you like instructions? Welcome to Adventure!! Would you like instructions?
> ##Just straight quit.
Please stick to 1- and 2-word commands.
> n > n
You are standing at the end of a road before a small brick building. You are standing at the end of a road before a small brick building.