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:
Bill Currie 2005-04-25 06:22:15 +00:00
parent 2cc2da4d90
commit 8fd7af71ae

View file

@ -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, "");
}