From 4ab81ae614fe1cde83d8c305b61e598ef1c66ae1 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 3 Apr 2005 11:06:19 +0000 Subject: [PATCH] autoseed hatte noch eine macke --- src/common/modules/autoseed.c | 9 ++++++++- src/scripts/eressea.lua | 2 -- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/src/common/modules/autoseed.c b/src/common/modules/autoseed.c index 61ed97b41..101dfa540 100644 --- a/src/common/modules/autoseed.c +++ b/src/common/modules/autoseed.c @@ -316,7 +316,14 @@ autoseed(newfaction ** players, int nsize) if (rmin!=NULL) { region_list * rlist = NULL, * rptr; faction * f; - get_island(rmin, &rlist); + direction_t d; + for (d=0;d!=MAXDIRECTIONS;++d) { + region * rn = rconnect(rmin, d); + if (rn && rn->land) { + get_island(rn, &rlist); + break; + } + } for (rptr=rlist;rptr;rptr=rptr->next) { region * r = rlist->data; unit * u; diff --git a/src/scripts/eressea.lua b/src/scripts/eressea.lua index d0d6449a5..4faf59ba9 100644 --- a/src/scripts/eressea.lua +++ b/src/scripts/eressea.lua @@ -71,8 +71,6 @@ function process(orders) autoseed(basepath .. "/newfactions") - autoseed(basepath .. "/newfactions") - write_passwords() write_reports()