X-Git-Url: https://jxself.org/git/?a=blobdiff_plain;f=main.c;h=0100cd40d85a515e11c0df7bc9bbf991b9ff569b;hb=refs%2Fmerge-requests%2F108%2Fhead;hp=9fc8fa97ad827e24e15511e2fbcf621acbab1f8b;hpb=d46407d3279fa54bcbc66fdf02111383074fa53e;p=open-adventure.git diff --git a/main.c b/main.c index 9fc8fa9..0100cd4 100644 --- a/main.c +++ b/main.c @@ -91,6 +91,7 @@ int main(int argc, char *argv[]) oldstyle = true; editline = prompt = false; break; +#ifndef ADVENT_NOSAVE case 'r': rfp = fopen(optarg, "r"); if (rfp == NULL) @@ -99,6 +100,7 @@ int main(int argc, char *argv[]) optarg); signal(SIGINT, sig_handler); break; +#endif case 's': editline = false; break; @@ -109,8 +111,10 @@ int main(int argc, char *argv[]) " where -l creates a log file of your game named as specified'\n"); fprintf(stderr, " -o 'oldstyle' (no prompt, no command editing, displays 'Initialising...')\n"); +#ifndef ADVENT_NOSAVE fprintf(stderr, " -r indicates restoring from specified saved game file\n"); +#endif fprintf(stderr, " -s indicates playing with command editing suppressed\n"); exit(-1); @@ -983,7 +987,8 @@ static bool do_command(FILE *cmdin) else continue; /* back to top of main interpreter loop */ } - if (game.loc == 33 && PCT(25) && !game.closng)RSPEAK(SAYS_PLUGH); + if (game.loc == LOC_Y2 && PCT(25) && !game.closng) + RSPEAK(SAYS_PLUGH); listobjects();