forked from github/server
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:
parent
9930324619
commit
990b6505bf
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue