From 799ecdac31289dbc902b7255825dfa0012479922 Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Mon, 11 Apr 2005 22:11:02 +0000 Subject: [PATCH] Jetzt geht's --- src/eressea/korrektur.c | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/src/eressea/korrektur.c b/src/eressea/korrektur.c index f5f577322..f673b5eda 100644 --- a/src/eressea/korrektur.c +++ b/src/eressea/korrektur.c @@ -412,21 +412,14 @@ 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) { - fix_demand(r); - } + if (r->land!=NULL && r->land->demands==NULL) { + fix_demand(r); } } return 0;