Fix BUG 0001976

http://bugs.eressea.de/view.php?id=1976
Check that only buling owner set k_pay disable
If other unit inside the building set k_pay disable
it have now no effect, before only fraction was check

Conflicts:
	scripts/tests/eressea.lua
This commit is contained in:
TomBraun 2014-07-02 13:58:10 +02:00 committed by Enno Rehling
parent 9930324619
commit 990b6505bf
1 changed files with 1 additions and 1 deletions

View File

@ -4028,7 +4028,7 @@ int pay_cmd(unit * u, struct order *ord)
p = getparam(u->faction->locale);
if (p == P_NOT) {
unit *owner = building_owner(u->building);
if (owner->faction != u->faction) {
if (owner->no != u->no) {
cmistake(u, ord, 1222, MSG_EVENT);
} else {
u->building->flags |= BLD_DONTPAY;