forked from github/server
tote übergeben items nur bei gegenseitigem HELFE SILBER bzw. HELFE GIB
This commit is contained in:
parent
9f315c32aa
commit
4ac9cf30e8
|
@ -134,7 +134,7 @@ distribute_items(unit * u)
|
|||
if (u->items==NULL) return;
|
||||
|
||||
for (au=r->units;au;au=au->next) if (au->faction!=f) {
|
||||
if (alliedunit(u, au->faction, HELP_ALL)) {
|
||||
if (alliedunit(u, au->faction, HELP_MONEY) && alliedunit(au, f, HELP_GIVE)) {
|
||||
struct friend * nf, ** fr = &friends;
|
||||
|
||||
while (*fr && (*fr)->faction->no<au->faction->no) fr = &(*fr)->next;
|
||||
|
|
Loading…
Reference in New Issue