fairland: Fix "Only managed to grow" error message off by one

Signed-off-by: Markus Armbruster <armbru@pond.sub.org>
This commit is contained in:
Markus Armbruster 2020-07-25 09:20:09 +02:00
parent b392b68bd5
commit 9623f3e038
2 changed files with 4 additions and 3 deletions

View file

@ -811,7 +811,8 @@ grow_continents(void)
find_coast(c); find_coast(c);
if (!done) 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; ctot = nc;
return done; return done;
} }

View file

@ -15,12 +15,12 @@ World dimensions: 64x32
seed is 1 seed is 1
placing capitals... placing capitals...
growing continents... 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)... try #2 (out of 10)...
placing capitals... placing capitals...
growing continents... 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)... try #3 (out of 10)...
placing capitals... placing capitals...