(buy, move, prod, dodistribute, produce): Obey ITEM_MAX. Previous
change to move() was incomplete.
This commit is contained in:
parent
913774e53e
commit
9b7a65b865
5 changed files with 16 additions and 18 deletions
|
@ -286,11 +286,9 @@ prod(void)
|
|||
if (real < 0.0)
|
||||
real = 0.0;
|
||||
/* production backlog? */
|
||||
if ((there = sect.sct_item[vtype]) >= 9999) {
|
||||
there = 9999;
|
||||
}
|
||||
act = min(act, (9999 - there));
|
||||
max = min(max, (9999 - there));
|
||||
there = min(ITEM_MAX, sect.sct_item[vtype]);
|
||||
act = min(act, ITEM_MAX - there);
|
||||
max = min(max, ITEM_MAX - there);
|
||||
}
|
||||
|
||||
if (prodeff != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue