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.
This commit is contained in:
parent
b8804d1cc0
commit
56c28caf5b
1 changed files with 3 additions and 7 deletions
|
@ -201,16 +201,12 @@ journal_output(struct player *pl, int id, char *output)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
static void
|
||||||
journal_output_1(struct player *pl, int id,
|
journal_output_1(struct player *pl, int id,
|
||||||
char *buf1, char *buf2, int buf2prec)
|
char *buf1, char *buf2, int buf2prec)
|
||||||
{
|
{
|
||||||
if (pl && pl->state == PS_PLAYING)
|
journal_entry("output %s %d %s%.*s",
|
||||||
journal_entry("output %d %d %s%.*s",
|
empth_name(empth_self()), id, buf1, buf2prec, buf2);
|
||||||
pl->cnum, id, buf1, buf2prec, buf2);
|
|
||||||
else
|
|
||||||
journal_entry("output %p %d %s%.*s",
|
|
||||||
pl, id, buf1, buf2prec, buf2);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue