mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-10 15:22:04 +00:00
don't cause clients playing mvds to bail when console chats and fix a
missing \n in the recorded chat message
This commit is contained in:
parent
2cc2da4d90
commit
8fd7af71ae
1 changed files with 3 additions and 2 deletions
|
@ -764,10 +764,11 @@ SV_ConSay (const char *prefix, client_t *client)
|
|||
SV_ClientPrintf (0, client, PRINT_CHAT, "%s", "");
|
||||
}
|
||||
if (sv.demorecording) {
|
||||
DemoWrite_Begin (dem_all, 0, strlen (text->str) + 3);
|
||||
DemoWrite_Begin (dem_all, 0, strlen (text->str) + 7);
|
||||
MSG_WriteByte (&demo.dbuf->sz, svc_print);
|
||||
MSG_WriteByte (&demo.dbuf->sz, PRINT_HIGH);
|
||||
MSG_WriteString (&demo.dbuf->sz, text->str);
|
||||
MSG_WriteString (&demo.dbuf->sz, va ("%s\n", text->str));
|
||||
MSG_WriteByte (&demo.dbuf->sz, svc_print);
|
||||
MSG_WriteByte (&demo.dbuf->sz, PRINT_CHAT);
|
||||
MSG_WriteString (&demo.dbuf->sz, "");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue