From: divverent Date: Thu, 6 Sep 2012 18:43:49 +0000 (+0000) Subject: special character translation: don't generate control characters from non-control... X-Git-Tag: xonotic-v0.8.0~96^2~196 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=338c6208bcb0ab57be079f8fd5d32ebc04549b63;p=xonotic%2Fdarkplaces.git 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 --- 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)