forked from github/server
... only if not a new building
This commit is contained in:
parent
7175c87140
commit
0faffa9f2f
|
@ -882,14 +882,16 @@ build_building(unit * u, const building_type * btype, int want, order * ord)
|
|||
}
|
||||
n = 1;
|
||||
}
|
||||
if (rule_other<0) {
|
||||
rule_other = get_param_int(global.parameters, "rules.build.other_buildings", 1);
|
||||
}
|
||||
if (!rule_other) {
|
||||
unit * owner = buildingowner(r, b);
|
||||
if (!owner || owner->faction!=u->faction) {
|
||||
cmistake(u, ord, 1222, MSG_PRODUCE);
|
||||
return;
|
||||
if (b) {
|
||||
if (rule_other<0) {
|
||||
rule_other = get_param_int(global.parameters, "rules.build.other_buildings", 1);
|
||||
}
|
||||
if (!rule_other) {
|
||||
unit * owner = buildingowner(r, b);
|
||||
if (!owner || owner->faction!=u->faction) {
|
||||
cmistake(u, ord, 1222, MSG_PRODUCE);
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue