From 4ce415be5099ef93f20c9634d1c396a7effa8e5e Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Tue, 14 Feb 2017 20:51:03 +0100 Subject: [PATCH] BUG 2281: fix maxsize of guard towers. --- res/e3a/buildings.xml | 2 +- src/kernel/build.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/res/e3a/buildings.xml b/res/e3a/buildings.xml index c1edbcc0b..f65654e2f 100644 --- a/res/e3a/buildings.xml +++ b/res/e3a/buildings.xml @@ -3,7 +3,7 @@ - + diff --git a/src/kernel/build.c b/src/kernel/build.c index dff51cf6c..6b23723e8 100644 --- a/src/kernel/build.c +++ b/src/kernel/build.c @@ -595,7 +595,7 @@ int build(unit * u, const construction * ctype, int completed, int want) else break; } - if (type->materials) + if (type->materials) { for (c = 0; type->materials[c].number; c++) { const struct resource_type *rtype = type->materials[c].rtype; int prebuilt = @@ -620,6 +620,7 @@ int build(unit * u, const construction * ctype, int completed, int want) use_pooled(u, rtype, GET_DEFAULT, (need - prebuilt + multi - 1) / multi); } + } made += n; skills -= n * type->minskill; want -= n;