From 18ce542f517c61b2d4c2c2434fdb523eff640b2d Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Sun, 20 Jan 2002 13:00:52 +0000 Subject: [PATCH] "could not render cr-message" --- src/common/gamecode/creport.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/common/gamecode/creport.c b/src/common/gamecode/creport.c index 48111eeb7..0b56ea13a 100644 --- a/src/common/gamecode/creport.c +++ b/src/common/gamecode/creport.c @@ -400,11 +400,12 @@ render_messages(FILE * F, faction * f, message_list *msgs) } #endif crbuffer[0] = '\0'; - if (cr_render(m->msg, crbuffer, (const void*)f)==0 && crbuffer[0]) { + if (cr_render(m->msg, crbuffer, (const void*)f)==0) { if (!printed) fprintf(F, "MESSAGE %d\n", ++msgno); - fputs(crbuffer, F); + if (crbuffer[0]) fputs(crbuffer, F); + } else { + log_error(("could not render cr-message %p: %s\n", m->msg, m->msg->type->name)); } - else log_error(("could not render cr-message %p: %s\n", m->msg, m->msg->type->name)); if (printed) { unsigned int ihash = hash % MTMAXHASH; struct known_mtype * kmt = mtypehash[ihash];