forked from github/server
bugfix crash 9/19/2001
when seen from lighthouse, skip units in buildings.
This commit is contained in:
parent
860d5c75d7
commit
573170f36e
|
@ -2203,6 +2203,10 @@ report_plaintext(const char *filename, report_context * ctx,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else while (u && u->building) {
|
||||||
|
/* do not report units in buildings */
|
||||||
|
u = u->next;
|
||||||
|
}
|
||||||
while (u && !u->ship) {
|
while (u && !u->ship) {
|
||||||
if (visible_unit(u, f, stealthmod, r->seen.mode)) {
|
if (visible_unit(u, f, stealthmod, r->seen.mode)) {
|
||||||
nr_unit(out, f, u, 4, r->seen.mode);
|
nr_unit(out, f, u, 4, r->seen.mode);
|
||||||
|
|
Loading…
Reference in New Issue