From 93a76e9d2f5957e934f6b3602cbee2fef2b39937 Mon Sep 17 00:00:00 2001 From: NHOrus Date: Mon, 19 Jun 2017 19:11:07 +0300 Subject: [PATCH] No need to tease with excluded options --- main.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/main.c b/main.c index db80406..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); -- 2.31.1