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) {
|
if (r!=NULL) {
|
||||||
/* reicht das? */
|
/* reicht das? */
|
||||||
fix_demand(r);
|
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;
|
return tsize;
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,6 +35,7 @@
|
||||||
#include <kernel/save.h>
|
#include <kernel/save.h>
|
||||||
#include <kernel/terrain.h>
|
#include <kernel/terrain.h>
|
||||||
#include <kernel/unit.h>
|
#include <kernel/unit.h>
|
||||||
|
#include <kernel/faction.h>
|
||||||
|
|
||||||
/* util includes */
|
/* util includes */
|
||||||
#include <attrib.h>
|
#include <attrib.h>
|
||||||
|
|
Loading…
Reference in New Issue