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,21 +412,14 @@ update_gms(void)
} }
} }
static int maxluxuries = 0;
static int static int
fix_demands(void) fix_demands(void)
{ {
region *r; 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) { for (r=regions; r; r=r->next) {
if (r->land!=NULL && r->land->peasants>=100) { if (r->land!=NULL && r->land->demands==NULL) {
if (count_demand(r) != maxluxuries) { fix_demand(r);
fix_demand(r);
}
} }
} }
return 0; return 0;