forked from github/server
fix for fix_familiars complaining about goblins.
indentation fixes.
This commit is contained in:
parent
8c2e545698
commit
fc70d1d66a
1 changed files with 314 additions and 311 deletions
|
@ -833,8 +833,10 @@ fix_familiars(void)
|
||||||
region * r;
|
region * r;
|
||||||
for (r=regions;r;r=r->next) {
|
for (r=regions;r;r=r->next) {
|
||||||
unit * u;
|
unit * u;
|
||||||
for (u=r->units;u;u=u->next) if (u->faction->no!=MONSTER_FACTION) {
|
for (u=r->units;u;u=u->next) {
|
||||||
if (u->race->init_familiar) {
|
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 */
|
/* this is a familiar */
|
||||||
unit * mage = get_familiar_mage(u);
|
unit * mage = get_familiar_mage(u);
|
||||||
equipment * eq;
|
equipment * eq;
|
||||||
|
@ -878,6 +880,7 @@ fix_familiars(void)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue