From 338c6208bcb0ab57be079f8fd5d32ebc04549b63 Mon Sep 17 00:00:00 2001 From: divverent Date: Thu, 6 Sep 2012 18:43:49 +0000 Subject: [PATCH] special character translation: don't generate control characters from non-control characters! qfont_table entry 10 e.g. causes U+E00A to be turned into a newline. DO NOT WANT. git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@11842 d7cf8633-e32d-0410-b094-e92efae38249 --- console.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/console.c b/console.c index e21f2cbf..1123d094 100644 --- a/console.c +++ b/console.c @@ -1125,7 +1125,7 @@ void Con_MaskPrint(int additionalmask, const char *msg) while(*p) { int ch = u8_getchar(p, &q); - if(ch >= 0xE000 && ch <= 0xE0FF) + if(ch >= 0xE000 && ch <= 0xE0FF && ((unsigned char) qfont_table[ch - 0xE000]) >= 0x20) { *p = qfont_table[ch - 0xE000]; if(q > p+1) -- 2.39.2