From f4e2573b589cef2cbb246d3fffda2f40a7643858 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Fri, 8 Apr 2005 19:47:10 +0000 Subject: [PATCH] =?UTF-8?q?fix=20f=C3=BCr=20autoseed-inselfindung?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/modules/autoseed.c | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index 101dfa540..f24f6f280 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -308,22 +308,17 @@ autoseed(newfaction ** players, int nsize) direction_t d; for (d=0;d!=MAXDIRECTIONS;++d) { region * rn = rconnect(r, d); - if (rn && rn->land) break; + if (rn && rn->land) { + rmin = rn; + break; + } } - if (d!=MAXDIRECTIONS) rmin = r; } } if (rmin!=NULL) { region_list * rlist = NULL, * rptr; faction * f; - direction_t d; - for (d=0;d!=MAXDIRECTIONS;++d) { - region * rn = rconnect(rmin, d); - if (rn && rn->land) { - get_island(rn, &rlist); - break; - } - } + get_island(rmin, &rlist); for (rptr=rlist;rptr;rptr=rptr->next) { region * r = rlist->data; unit * u;