fix for fix_familiars complaining about goblins.

indentation fixes.
This commit is contained in:
Enno Rehling 2006-04-09 17:35:15 +00:00
parent 8c2e545698
commit fc70d1d66a
1 changed files with 314 additions and 311 deletions

View File

@ -833,8 +833,10 @@ fix_familiars(void)
region * r;
for (r=regions;r;r=r->next) {
unit * u;
for (u=r->units;u;u=u->next) if (u->faction->no!=MONSTER_FACTION) {
if (u->race->init_familiar) {
for (u=r->units;u;u=u->next) {
if (u->faction->no!=MONSTER_FACTION && u->race->init_familiar) {
attrib * a = a_find(u->attribs, &at_familiar);
if (a!=NULL) {
/* this is a familiar */
unit * mage = get_familiar_mage(u);
equipment * eq;
@ -878,6 +880,7 @@ fix_familiars(void)
}
}
}
}
return 0;
}