bugfix autoseeding. this should no longer make those gigantic islands we've had before.

This commit is contained in:
Enno Rehling 2005-07-26 16:37:07 +00:00
parent ba29935965
commit aa9a89d603
2 changed files with 7 additions and 7 deletions

View File

@ -567,13 +567,6 @@ autoseed(newfaction ** players, int nsize)
}
}
while (rlist) {
region_list * self = rlist;
rlist = rlist->next;
freset(self->data, FL_MARK);
free(self);
}
if (r!=NULL) {
/* reicht das? */
fix_demand(r);
@ -640,6 +633,12 @@ autoseed(newfaction ** players, int nsize)
}
}
}
while (rlist) {
region_list * self = rlist;
rlist = rlist->next;
freset(self->data, FL_MARK);
free(self);
}
}
return tsize;
}

View File

@ -35,6 +35,7 @@
#include <kernel/save.h>
#include <kernel/terrain.h>
#include <kernel/unit.h>
#include <kernel/faction.h>
/* util includes */
#include <attrib.h>