X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=console.c;h=769ae2f6adfff44981d27f9af678f5784615fcd8;hb=66a10ad8f7213d8969fc53f69f1ff712f3aea004;hp=537cdc72019ced668af841aa9e8fbed16c153b2b;hpb=276e463972834a60d2c8cc23de2a65af8589a8c6;p=xonotic%2Fdarkplaces.git diff --git a/console.c b/console.c index 537cdc72..769ae2f6 100644 --- a/console.c +++ b/console.c @@ -814,7 +814,6 @@ static void Con_PrintToHistory(const char *txt, int mask) if(!con.text) // FIXME uses a non-abstracted property of con return; - if (con_mutex) Thread_LockMutex(con_mutex); for(; *txt; ++txt) { if(cr_pending) @@ -845,7 +844,6 @@ static void Con_PrintToHistory(const char *txt, int mask) break; } } - if (con_mutex) Thread_UnlockMutex(con_mutex); } /*! The translation table between the graphical font and plain ASCII --KB */ @@ -1535,7 +1533,7 @@ static float Con_WordWidthFunc(void *passthrough, const char *w, size_t *length, return DrawQ_TextWidth(w, *length, ti->fontsize, ti->fontsize, false, ti->font); else { - printf("Con_WordWidthFunc: can't get here (maxWidth should never be %f)\n", maxWidth); + Sys_PrintfToTerminal("Con_WordWidthFunc: can't get here (maxWidth should never be %f)\n", maxWidth); // Note: this is NOT a Con_Printf, as it could print recursively return 0; }