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.7.0~110 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b46f2908b98eddf09de84ed6d9db985974488ed4;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 ::stable-branch::merge=338c6208bcb0ab57be079f8fd5d32ebc04549b63 --- 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)