forked from github/server
Jetzt geht's
This commit is contained in:
parent
61e63eed3c
commit
799ecdac31
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue