From 9623f3e0380c715a003f24035c44fad7c8441561 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Sat, 25 Jul 2020 09:20:09 +0200 Subject: [PATCH] fairland: Fix "Only managed to grow" error message off by one Signed-off-by: Markus Armbruster --- src/util/fairland.c | 3 ++- tests/fairland/stunted.out | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/util/fairland.c b/src/util/fairland.c index b8c520b5..0b3a8b6b 100644 --- a/src/util/fairland.c +++ b/src/util/fairland.c @@ -811,7 +811,8 @@ grow_continents(void) find_coast(c); if (!done) - qprint("Only managed to grow %d out of %d sectors.\n", secs, sc); + qprint("Only managed to grow %d out of %d sectors.\n", + secs - 1, sc); ctot = nc; return done; } diff --git a/tests/fairland/stunted.out b/tests/fairland/stunted.out index fc3eb3f5..ed57497f 100644 --- a/tests/fairland/stunted.out +++ b/tests/fairland/stunted.out @@ -15,12 +15,12 @@ World dimensions: 64x32 seed is 1 placing capitals... growing continents... -Only managed to grow 33 out of 37 sectors. +Only managed to grow 32 out of 37 sectors. try #2 (out of 10)... placing capitals... growing continents... -Only managed to grow 31 out of 37 sectors. +Only managed to grow 30 out of 37 sectors. try #3 (out of 10)... placing capitals...