1
0
Fork 0
forked from fte/fteqw

Fix 'fun' chars getting stripped from player names.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5302 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2018-08-26 16:27:54 +00:00
parent b6847664a7
commit bf30886163

View file

@ -2911,10 +2911,10 @@ char *COM_DeFunString(conchar_t *str, conchar_t *stop, char *out, int outsize, q
}
if (d & CON_2NDCHARSETTEXT)
{ //FIXME: convert to quake glyphs...
if (!com_parseutf8.ival && !forceutf8 && codepoint <= 255)
if (!com_parseutf8.ival && !forceutf8 && codepoint >= 32 && codepoint <= 127)
{ //strip the flag and encode it in private use (so it gets encoded as quake-compatible)
d &= ~CON_2NDCHARSETTEXT;
codepoint |= 0xe000;
codeflags &= ~CON_2NDCHARSETTEXT;
codepoint |= 0xe080;
}
else
{