From 3ea57bdf2ff2eea76e6619851bfec7dc1dfa8a4a Mon Sep 17 00:00:00 2001 From: James R Date: Sat, 2 Mar 2024 22:23:42 -0800 Subject: [PATCH] CONS_Printf: lock more of the function behind mutex --- src/console.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/console.c b/src/console.c index bf2dd069f..282f833a4 100644 --- a/src/console.c +++ b/src/console.c @@ -1512,6 +1512,8 @@ void CONS_Printf(const char *fmt, ...) vsprintf(txt, fmt, argptr); va_end(argptr); + Lock_state(); + // echo console prints to log file DEBFILE(txt); @@ -1521,8 +1523,6 @@ void CONS_Printf(const char *fmt, ...) CON_LogMessage(txt); - Lock_state(); - // make sure new text is visible con_scrollup = 0;