]> 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)
committerdivverent <divverent@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 6 Sep 2012 18:43:49 +0000 (18:43 +0000)
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

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)