Bugfix Schiffbau zuviel Resourcen

This commit is contained in:
Enno Rehling 2002-10-27 10:17:47 +00:00
parent 33036fb8f8
commit 9a8a7f11c6
1 changed files with 3 additions and 0 deletions

View File

@ -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++) {