From 88b9d3c583a8bfba3dd2d037b17546aae2f5be1b Mon Sep 17 00:00:00 2001 From: CTD Date: Thu, 16 Oct 2014 14:40:22 +0200 Subject: [PATCH] =?UTF-8?q?Fix=20f=C3=BCr=20Leere=20Geb=C3=A4ude?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/economy.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/economy.c b/src/economy.c index bb24fd5e5..bf7e4f288 100644 --- a/src/economy.c +++ b/src/economy.c @@ -1039,12 +1039,10 @@ static bool maintain(building * b, bool first) u = building_owner(b); if (u == NULL) 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 (u == building_owner(largestbuilding(r, &cmp_taxes, false))) { - if (fval(u->building, BLD_DONTPAY)) { - return false; - } + if (fval(u->building, BLD_DONTPAY)) { + return false; } } for (c = 0; b->type->maintenance[c].number; ++c) {