forked from github/server
endless loop
This commit is contained in:
parent
5a2eff08be
commit
bd5aa5f04b
|
@ -235,17 +235,18 @@ setstealth_cmd(unit * u, struct order * ord)
|
||||||
unit * mu = u->faction->units;
|
unit * mu = u->faction->units;
|
||||||
while (mu!=NULL) {
|
while (mu!=NULL) {
|
||||||
unit * ru = mu->region->units;
|
unit * ru = mu->region->units;
|
||||||
if (mu->region==lastr) continue;
|
if (mu->region!=lastr) {
|
||||||
while (ru!=NULL) {
|
while (ru!=NULL) {
|
||||||
attrib *a = a_find(ru->attribs, &at_otherfaction);
|
attrib *a = a_find(ru->attribs, &at_otherfaction);
|
||||||
if (a) {
|
if (a) {
|
||||||
faction *fv = get_otherfaction(a);
|
faction *fv = get_otherfaction(a);
|
||||||
if (fv==f) break;
|
if (fv==f) break;
|
||||||
|
}
|
||||||
|
ru = ru->next;
|
||||||
}
|
}
|
||||||
ru = ru->next;
|
if (ru!=NULL) break;
|
||||||
|
lastr = mu->region;
|
||||||
}
|
}
|
||||||
if (ru!=NULL) break;
|
|
||||||
lastr = mu->region;
|
|
||||||
mu = mu->nextF;
|
mu = mu->nextF;
|
||||||
}
|
}
|
||||||
if (mu!=NULL) {
|
if (mu!=NULL) {
|
||||||
|
|
Loading…
Reference in New Issue