Jetzt geht's

This commit is contained in:
Enno Rehling 2005-04-11 22:11:02 +00:00
parent 61e63eed3c
commit 799ecdac31
1 changed files with 2 additions and 9 deletions

View File

@ -412,23 +412,16 @@ update_gms(void)
}
}
static int maxluxuries = 0;
static int
fix_demands(void)
{
region *r;
const luxury_type *sale = NULL;
if (maxluxuries==0) for (sale=luxurytypes;sale;sale=sale->next) ++maxluxuries;
for (r=regions; r; r=r->next) {
if (r->land!=NULL && r->land->peasants>=100) {
if (count_demand(r) != maxluxuries) {
if (r->land!=NULL && r->land->demands==NULL) {
fix_demand(r);
}
}
}
return 0;
}