CONS_Printf: lock more of the function behind mutex

This commit is contained in:
James R 2024-03-02 22:23:42 -08:00
parent 27764435f9
commit 3ea57bdf2f

View file

@ -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;