"FOLGE trotz langem Kampf"

Die Berechnung ob eine Seite Bewacher hat, war ziemlich falsch.
This commit is contained in:
Enno Rehling 2007-03-04 18:40:52 +00:00
parent 0f0155fd0c
commit 373e869931
1 changed files with 1 additions and 2 deletions

View File

@ -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;
} }