Merge pull request #110 from stm2/bug1973

cr_report should also check if region messages can be heard (bug #1973)
This commit is contained in:
Enno Rehling 2015-02-01 12:28:17 +01:00
commit 89598dd987
1 changed files with 8 additions and 6 deletions

View File

@ -1440,12 +1440,14 @@ static void cr_output_region(FILE * F, report_context * ctx, seen_region * sr)
} }
} }
} }
if (sr->mode == see_unit || sr->mode == see_travel) {
cr_output_messages(F, r->msgs, f); cr_output_messages(F, r->msgs, f);
{ {
message_list *mlist = r_getmessages(r, f); message_list *mlist = r_getmessages(r, f);
if (mlist) if (mlist)
cr_output_messages(F, mlist, f); cr_output_messages(F, mlist, f);
} }
}
/* buildings */ /* buildings */
for (b = rbuildings(r); b; b = b->next) { for (b = rbuildings(r); b; b = b->next) {
int fno = -1; int fno = -1;