forked from github/server
"could not render cr-message"
This commit is contained in:
parent
90de041ef2
commit
18ce542f51
|
@ -400,11 +400,12 @@ render_messages(FILE * F, faction * f, message_list *msgs)
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
crbuffer[0] = '\0';
|
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);
|
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) {
|
if (printed) {
|
||||||
unsigned int ihash = hash % MTMAXHASH;
|
unsigned int ihash = hash % MTMAXHASH;
|
||||||
struct known_mtype * kmt = mtypehash[ihash];
|
struct known_mtype * kmt = mtypehash[ihash];
|
||||||
|
|
Loading…
Reference in New Issue