forked from github/server
another change of the is_biggest_building() logic
This commit is contained in:
parent
030832c20e
commit
53b0d639f2
2 changed files with 6 additions and 4 deletions
|
@ -2683,9 +2683,9 @@ cmp_current_owner(const building * b, const building * a)
|
|||
int oldsize = buildingeffsize(a, false);
|
||||
double oldtaxes = a->type->taxes(a, oldsize);
|
||||
|
||||
if (newtaxes<oldtaxes) return -1;
|
||||
else if (newtaxes>oldtaxes) return 1;
|
||||
return 0;
|
||||
if (newtaxes!=oldtaxes) return (int)(newtaxes-oldtaxes);
|
||||
if (newsize!=oldsize) return newsize-oldsize;
|
||||
return (b->size-a->size);
|
||||
} else {
|
||||
return 1;
|
||||
}
|
||||
|
|
|
@ -475,7 +475,9 @@ prepare_starting_region(region * r)
|
|||
p = rng_double();
|
||||
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
|
||||
|
|
Loading…
Reference in a new issue