forked from github/server
Bugfix Schiffbau zuviel Resourcen
This commit is contained in:
parent
33036fb8f8
commit
9a8a7f11c6
|
@ -661,6 +661,9 @@ build(unit * u, const construction * ctype, int completed, int want)
|
|||
n = min(want, n);
|
||||
if (type->maxsize>0) {
|
||||
n = min(type->maxsize-completed, n);
|
||||
if (type->improvement==NULL) {
|
||||
want = n;
|
||||
}
|
||||
}
|
||||
|
||||
if (type->materials) for (c=0;n>0 && type->materials[c].number;c++) {
|
||||
|
|
Loading…
Reference in New Issue