we never checked if building maintenance was paid (see also #1740)

This commit is contained in:
Enno Rehling 2011-03-09 20:51:11 +01:00
parent 2c02c38803
commit 3d98275d58
1 changed files with 2 additions and 5 deletions

View File

@ -1637,11 +1637,8 @@ buildingtype_exists(const region * r, const building_type * bt, boolean working)
building *b;
for (b = rbuildings(r); b; b = b->next) {
if (b->type == bt) {
if (b->size >= bt->maxsize) {
return true;
}
}
if (b->type == bt && b->size >= bt->maxsize && (!working || fval(b, BLD_WORKING)))
return true;
}
return false;