forked from github/server
more randomized ocean borders.
This commit is contained in:
parent
84f54d2642
commit
a105f55716
|
@ -674,13 +674,13 @@ autoseed(newfaction ** players, int nsize, boolean new_island)
|
||||||
|
|
||||||
if (rlist) {
|
if (rlist) {
|
||||||
#define MINOCEANDIST 3
|
#define MINOCEANDIST 3
|
||||||
|
#define MAXOCEANDIST 6
|
||||||
#define MAXFILLDIST 10
|
#define MAXFILLDIST 10
|
||||||
#define SPECIALCHANCE 80
|
#define SPECIALCHANCE 80
|
||||||
region_list ** rbegin = &rlist;
|
region_list ** rbegin = &rlist;
|
||||||
int i;
|
|
||||||
int special = 1;
|
int special = 1;
|
||||||
|
int oceandist = MINOCEANDIST + (rng_int() % (MAXOCEANDIST-MINOCEANDIST));
|
||||||
for (i=0;i!=MINOCEANDIST;++i) {
|
while (oceandist--) {
|
||||||
region_list ** rend = rbegin;
|
region_list ** rend = rbegin;
|
||||||
while (*rend) rend=&(*rend)->next;
|
while (*rend) rend=&(*rend)->next;
|
||||||
while (rbegin!=rend) {
|
while (rbegin!=rend) {
|
||||||
|
|
Loading…
Reference in New Issue