]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
special character translation: don't generate control characters from non-control...
authordivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 6 Sep 2012 18:43:49 +0000 (18:43 +0000)
committerRudolf Polzer <divverent@xonotic.org>
Tue, 18 Sep 2012 12:08:18 +0000 (14:08 +0200)
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

console.c

index e21f2cbfb4c88abb54e51b0f49ad3a4d3a6fc390..1123d094c8285c0cbd886f285cd3acc50e1a738c 100644 (file)
--- 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)