Fix für Leere Gebäude

Der check war sinnlos, denn u->building wobei u der Besitzer ist, gibt
ja im Fall das er der "Besitzer der größten Burg in der Region" ist eben
diese Burg zurück.

So geht das dann auch in E2.
This commit is contained in:
CTD 2014-10-16 14:40:22 +02:00
parent 34c80713ad
commit 88b9d3c583
1 changed files with 3 additions and 5 deletions

View File

@ -1039,12 +1039,10 @@ static bool maintain(building * b, bool first)
u = building_owner(b); u = building_owner(b);
if (u == NULL) if (u == NULL)
return false; return false;
/* If the owner is the region owner, check if biggest castle has the dontpay flag */ /* If the owner is the region owner, check if dontpay flag is set for the building where he is in */
if (check_param(global.parameters, "rules.region_owner_pay_building", b->type->_name)) { if (check_param(global.parameters, "rules.region_owner_pay_building", b->type->_name)) {
if (u == building_owner(largestbuilding(r, &cmp_taxes, false))) { if (fval(u->building, BLD_DONTPAY)) {
if (fval(u->building, BLD_DONTPAY)) { return false;
return false;
}
} }
} }
for (c = 0; b->type->maintenance[c].number; ++c) { for (c = 0; b->type->maintenance[c].number; ++c) {