forked from github/server
we never checked if building maintenance was paid (see also #1740)
This commit is contained in:
parent
2c02c38803
commit
3d98275d58
1 changed files with 2 additions and 5 deletions
|
@ -1637,11 +1637,8 @@ buildingtype_exists(const region * r, const building_type * bt, boolean working)
|
||||||
building *b;
|
building *b;
|
||||||
|
|
||||||
for (b = rbuildings(r); b; b = b->next) {
|
for (b = rbuildings(r); b; b = b->next) {
|
||||||
if (b->type == bt) {
|
if (b->type == bt && b->size >= bt->maxsize && (!working || fval(b, BLD_WORKING)))
|
||||||
if (b->size >= bt->maxsize) {
|
return true;
|
||||||
return true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Reference in a new issue