- fixed not putting regions next to firewall

This commit is contained in:
Enno Rehling 2008-06-02 10:34:58 +00:00
parent 5f3bfa3a2c
commit 0326ffe7fe

View file

@ -560,11 +560,11 @@ autoseed(newfaction ** players, int nsize, int max_agediff)
for (d=0;d!=MAXDIRECTIONS;++d) {
region * rn = rconnect(r, d);
if (rn && fval(rn, RF_MARK)) continue;
if (virgin_region(rn)) {
if (rn==NULL) {
rn = new_region(r->x + delta_x[d], r->y + delta_y[d], 0);
terraform(rn, T_OCEAN);
}
if (virgin_region(rn)) {
add_regionlist(&rlist, rn);
fset(rn, RF_MARK);
++rsize;