(produce): The reported amount produced (returned through last
parameter) did not reflect production cut for ITEM_MAX. Broken in 3.0.14 or so. Reported by Stefan Hauser.
This commit is contained in:
parent
f246f86542
commit
18417fdef6
1 changed files with 3 additions and 3 deletions
|
@ -126,12 +126,12 @@ produce(struct natstr *np, struct sctstr *sp, short *vec, int work,
|
||||||
* material_consume / actual);
|
* material_consume / actual);
|
||||||
if (material_consume < 0)
|
if (material_consume < 0)
|
||||||
material_consume = 0;
|
material_consume = 0;
|
||||||
vec[item] = ITEM_MAX;
|
actual = ITEM_MAX - vec[item];
|
||||||
if (sp->sct_own && !player->simulation)
|
if (sp->sct_own && !player->simulation)
|
||||||
wu(0, sp->sct_own,
|
wu(0, sp->sct_own,
|
||||||
"%s production backlog in %s\n",
|
"%s production backlog in %s\n",
|
||||||
product->p_name, ownxy(sp));
|
product->p_name, ownxy(sp));
|
||||||
} else
|
}
|
||||||
vec[item] += actual;
|
vec[item] += actual;
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue