forked from github/server
remove the last of the static item_type variables.
This commit is contained in:
parent
31c0e5c2a4
commit
a75d91fb6d
|
@ -2114,14 +2114,12 @@ static void expandselling(region * r, request * sellorders, int limit)
|
|||
return;
|
||||
|
||||
for (j = 0; j != norders; j++) {
|
||||
static const luxury_type *search = NULL;
|
||||
const luxury_type *search = NULL;
|
||||
const luxury_type *ltype = oa[j].type.ltype;
|
||||
int multi = r_demand(r, ltype);
|
||||
static int i = -1;
|
||||
int i;
|
||||
int use = 0;
|
||||
if (search != ltype) {
|
||||
i = 0;
|
||||
for (search = luxurytypes; search != ltype; search = search->next)
|
||||
for (i=0,search=luxurytypes; search!=ltype; search=search->next) {
|
||||
++i;
|
||||
}
|
||||
if (counter[i] >= limit)
|
||||
|
@ -2193,7 +2191,6 @@ static void expandselling(region * r, request * sellorders, int limit)
|
|||
free(oa);
|
||||
|
||||
/* Steuern. Hier werden die Steuern dem Besitzer der größten Burg gegeben. */
|
||||
|
||||
if (maxowner) {
|
||||
if (taxcollected > 0) {
|
||||
change_money(maxowner, (int)taxcollected);
|
||||
|
|
Loading…
Reference in New Issue