forked from github/server
BUG 2281: fix maxsize of guard towers.
This commit is contained in:
parent
1dcb21b08c
commit
4ce415be50
|
@ -3,7 +3,7 @@
|
|||
|
||||
<xi:include href="config://default/buildings/castle-2.xml" />
|
||||
|
||||
<building name="watch" capacity="1" fort="yes">
|
||||
<building name="watch" maxsize="10" capacity="1" fort="yes">
|
||||
<function name="name" value="fort_name"/>
|
||||
<function name="protection" value="building_protection"/>
|
||||
<function name="taxes" value="lua_building_taxes"/>
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue