mirror of
https://git.do.srb2.org/KartKrew/Kart-Public.git
synced 2025-03-30 23:12:06 +00:00
Fix chat not saving in console
Not sure why it was working before but broke now, maybe making va use snprintf instead of sprintf broke that
This commit is contained in:
parent
b70375618b
commit
6e736ce6a5
1 changed files with 4 additions and 1 deletions
|
@ -448,7 +448,10 @@ void HU_AddChatText(const char *text, boolean playsound)
|
|||
if (OLDCHAT) // if we're using oldchat, print directly in console
|
||||
CONS_Printf("%s\n", text);
|
||||
else // if we aren't, still save the message to log.txt
|
||||
CON_LogMessage(va("%s\n", text));
|
||||
{
|
||||
CON_LogMessage(text);
|
||||
CON_LogMessage("\n"); // Add newline. Don't use va for that, since `text` might be refering to va's buffer itself
|
||||
}
|
||||
#else
|
||||
(void)playsound;
|
||||
CONS_Printf("%s\n", text);
|
||||
|
|
Loading…
Reference in a new issue