From a105f55716fc73ea6c4e2ba2a0cc4c4d4d1b2367 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sat, 18 Nov 2006 11:29:31 +0000 Subject: [PATCH] more randomized ocean borders. --- src/common/modules/autoseed.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index 15065ab9b..d98f07a4e 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -674,13 +674,13 @@ autoseed(newfaction ** players, int nsize, boolean new_island) if (rlist) { #define MINOCEANDIST 3 +#define MAXOCEANDIST 6 #define MAXFILLDIST 10 #define SPECIALCHANCE 80 region_list ** rbegin = &rlist; - int i; int special = 1; - - for (i=0;i!=MINOCEANDIST;++i) { + int oceandist = MINOCEANDIST + (rng_int() % (MAXOCEANDIST-MINOCEANDIST)); + while (oceandist--) { region_list ** rend = rbegin; while (*rend) rend=&(*rend)->next; while (rbegin!=rend) { @@ -698,7 +698,7 @@ autoseed(newfaction ** players, int nsize, boolean new_island) } else { special = 1; } - terraform_region(rn, terrain); + terraform_region(rn, terrain); /* the new region has an extra 15% chance to have laen */ if (rng_int() % 100 < 15) rsetlaen(r, 5 + rng_int() % 5); /* the new region has an extra 20% chance to have mallorn */