From d1bde67589cd40ae1b3ad91ec2fedcfa3470d893 Mon Sep 17 00:00:00 2001 From: Markus Armbruster Date: Tue, 17 Mar 2009 20:19:49 +0100 Subject: [PATCH] Fix recipient thread in output journal Output journaling was cherry-picked from Hvy Metal II. However, how threads are identified in the journal changed since then. journal_output_1() needs updating for that. --- src/lib/subs/journal.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/lib/subs/journal.c b/src/lib/subs/journal.c index e53544020..78f1b49dd 100644 --- a/src/lib/subs/journal.c +++ b/src/lib/subs/journal.c @@ -201,16 +201,12 @@ journal_output(struct player *pl, int id, char *output) } } -void +static void journal_output_1(struct player *pl, int id, char *buf1, char *buf2, int buf2prec) { - if (pl && pl->state == PS_PLAYING) - journal_entry("output %d %d %s%.*s", - pl->cnum, id, buf1, buf2prec, buf2); - else - journal_entry("output %p %d %s%.*s", - pl, id, buf1, buf2prec, buf2); + journal_entry("output %s %d %s%.*s", + empth_name(empth_self()), id, buf1, buf2prec, buf2); } void -- 2.43.0