]> git.pond.sub.org Git - empserver/commitdiff
fairland: Fix "Only managed to grow" error message off by one
authorMarkus Armbruster <armbru@pond.sub.org>
Sat, 25 Jul 2020 07:20:09 +0000 (09:20 +0200)
committerMarkus Armbruster <armbru@pond.sub.org>
Tue, 5 Jan 2021 09:41:36 +0000 (10:41 +0100)
Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
src/util/fairland.c
tests/fairland/stunted.out

index b8c520b52c72040a7a3c3c10b7fefffa576b9a0f..0b3a8b6bc2edaa325cafad19d248fde83364d68b 100644 (file)
@@ -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;
 }
index fc3eb3f5b31d9349bda1055ad1f7f003ce300f8e..ed57497fc94ff3a0fac2bdd42f1ad502dfeec952 100644 (file)
@@ -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...