From 7c593f7e86bfe4305249346d5ec24166d05dec98 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sun, 26 Jul 2020 13:47:44 +0200 Subject: [PATCH] fairland: Reject continent size 1 fairland creates continents of size 1 just fine, but the newcap_script it emits doesn't work: the newcap command requires a second wilderness sector to the right of the first sector. Reject continent size 1. Signed-off-by: Markus Armbruster --- src/util/fairland.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/fairland.c b/src/util/fairland.c index 419865ea..c94f2b47 100644 --- a/src/util/fairland.c +++ b/src/util/fairland.c @@ -397,8 +397,8 @@ parse_args(int argc, char *argv[]) } sc = atoi(argv[1]); - if (sc < 1) { - fprintf(stderr, "%s: size of continents must be > 0\n", + if (sc < 2) { + fprintf(stderr, "%s: size of continents must be > 1\n", program_name); exit(1); }