another change of the is_biggest_building() logic
This commit is contained in:
Enno Rehling 2009-09-14 22:06:48 +00:00
parent 030832c20e
commit 53b0d639f2
2 changed files with 6 additions and 4 deletions

View file

@ -2683,9 +2683,9 @@ cmp_current_owner(const building * b, const building * a)
int oldsize = buildingeffsize(a, false); int oldsize = buildingeffsize(a, false);
double oldtaxes = a->type->taxes(a, oldsize); double oldtaxes = a->type->taxes(a, oldsize);
if (newtaxes<oldtaxes) return -1; if (newtaxes!=oldtaxes) return (int)(newtaxes-oldtaxes);
else if (newtaxes>oldtaxes) return 1; if (newsize!=oldsize) return newsize-oldsize;
return 0; return (b->size-a->size);
} else { } else {
return 1; return 1;
} }

View file

@ -475,7 +475,9 @@ prepare_starting_region(region * r)
p = rng_double(); p = rng_double();
rsethorses(r, (int)(r->terrain->size * (0.01 + p*0.01))); rsethorses(r, (int)(r->terrain->size * (0.01 + p*0.01)));
fix_demand(r); if (!markets_module()) {
fix_demand(r);
}
} }
/** create new island with up to nsize players /** create new island with up to nsize players