forked from github/server
bugfix crash 9/19/2001
when seen from lighthouse, skip units in buildings.
This commit is contained in:
parent
6a26ed5897
commit
209040e198
|
@ -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) {
|
||||
if (visible_unit(u, f, stealthmod, r->seen.mode)) {
|
||||
nr_unit(out, f, u, 4, r->seen.mode);
|
||||
|
|
Loading…
Reference in New Issue