X-Git-Url: https://jxself.org/git/?p=open-adventure.git;a=blobdiff_plain;f=misc.c;h=7057bad5272b10ec44239d7ff848008e0564d3c8;hp=3e0bb4145adcc2182c4c32e1cdd4f3d294c3eab9;hb=6146406990839864bfc5074327f44f207d3b61c2;hpb=3a2c0ca199cba2efbce5849285c910f02b961441 diff --git a/misc.c b/misc.c index 3e0bb41..7057bad 100644 --- a/misc.c +++ b/misc.c @@ -886,8 +886,11 @@ long I, VAL; if(MAP2[1] == 0)MPINIT(); if (!oldstyle && SETUP && OPENED == stdin) - fputs("> ", stdout); - IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); + fputs("> ", stdout); + do { + IGNORE(fgets(INLINE+1,sizeof(INLINE)-1,OPENED)); + } while + (!feof(OPENED) && INLINE[1] == '#'); if (feof(OPENED)) { if (logfp && OPENED == stdin) fclose(logfp);