Keine Burgen oder Schiffe in Land-Turmregionen zeigen.

This commit is contained in:
Enno Rehling 2019-08-20 19:31:52 +02:00
parent e5c4bd5013
commit b4867e4679
1 changed files with 25 additions and 24 deletions

View File

@ -1503,33 +1503,34 @@ static void cr_output_region(FILE * F, report_context * ctx, region * r)
cr_output_messages(F, mlist, f); cr_output_messages(F, mlist, f);
} }
} }
/* buildings */ if (r->seen.mode >= seen_lighthouse) {
for (b = rbuildings(r); b; b = b->next) { /* buildings */
int fno = -1; for (b = rbuildings(r); b; b = b->next) {
u = building_owner(b); int fno = -1;
if (u && !fval(u, UFL_ANON_FACTION)) { u = building_owner(b);
const faction *sf = visible_faction(f, u); if (u && !fval(u, UFL_ANON_FACTION)) {
fno = sf->no; const faction *sf = visible_faction(f, u);
} fno = sf->no;
cr_output_building_compat(F, b, u, fno, f); }
} cr_output_building_compat(F, b, u, fno, f);
/* ships */
for (sh = r->ships; sh; sh = sh->next) {
int fno = -1;
u = ship_owner(sh);
if (u && !fval(u, UFL_ANON_FACTION)) {
const faction *sf = visible_faction(f, u);
fno = sf->no;
} }
cr_output_ship_compat(F, sh, u, fno, f, r); /* ships */
} for (sh = r->ships; sh; sh = sh->next) {
int fno = -1;
u = ship_owner(sh);
if (u && !fval(u, UFL_ANON_FACTION)) {
const faction *sf = visible_faction(f, u);
fno = sf->no;
}
/* visible units */ cr_output_ship_compat(F, sh, u, fno, f, r);
for (u = r->units; u; u = u->next) { }
if (visible_unit(u, f, stealthmod, r->seen.mode)) { /* visible units */
cr_output_unit_compat(F, f, u, r->seen.mode); for (u = r->units; u; u = u->next) {
if (visible_unit(u, f, stealthmod, r->seen.mode)) {
cr_output_unit_compat(F, f, u, r->seen.mode);
}
} }
} }
} }