forked from github/server
bugfix autoseeding. this should no longer make those gigantic islands we've had before.
This commit is contained in:
parent
ba29935965
commit
aa9a89d603
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue