forked from github/server
"FOLGE trotz langem Kampf" Die Berechnung ob eine Seite Bewacher hat, war ziemlich falsch.
This commit is contained in:
parent
0f0155fd0c
commit
373e869931
|
@ -2258,8 +2258,7 @@ make_side(battle * b, const faction * f, const group * g, unsigned int flags, co
|
||||||
unit * u;
|
unit * u;
|
||||||
for (u = b->region->units; u; u = u->next) {
|
for (u = b->region->units; u; u = u->next) {
|
||||||
if (getguard(u)) {
|
if (getguard(u)) {
|
||||||
faction *fv = visible_faction(f, u);
|
if (alliedunit(u, f, HELP_GUARD)) {
|
||||||
if (alliedunit(u, fv, HELP_GUARD)) {
|
|
||||||
flags |= SIDE_HASGUARDS;
|
flags |= SIDE_HASGUARDS;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue